diff --git a/common/proxy/proxy_test.go b/common/proxy/proxy_test.go index 9ce36835c896ef7172bb4b9e49a35bcc4218c9d7..c335bf67834074607619edc734f0e0b3c2d72124 100644 --- a/common/proxy/proxy_test.go +++ b/common/proxy/proxy_test.go @@ -132,19 +132,11 @@ func TestProxyImplementForContext(t *testing.T) { p := NewProxy(invoker, nil, map[string]string{constant.ASYNC_KEY: "false"}) s := &TestService{} p.Implement(s) -<<<<<<< HEAD - attahments1 := make(map[string]interface{}, 4) - attahments1["k1"] = "v1" - attahments1["k2"] = "v2" - ctx := context.WithValue(context.Background(), constant.AttachmentKey, attahments1) - r, err := p.Get().(*TestService).MethodSix(ctx, "xxx") -======= attachments1 := make(map[string]interface{}, 4) attachments1["k1"] = "v1" attachments1["k2"] = "v2" context := context.WithValue(context.Background(), constant.AttachmentKey, attachments1) r, err := p.Get().(*TestService).MethodSix(context, "xxx") ->>>>>>> develop v1 := r.(map[string]interface{}) assert.NoError(t, err) assert.Equal(t, v1["TestProxyInvoker"], "TestProxyInvokerValue") diff --git a/go.mod b/go.mod index 18d85a650f27430f163b78f3bba92236c1a3b524..ac83a94bcfd8555bf073669da7ecbeabc1960b2a 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/apache/dubbo-go +go 1.15 + require ( github.com/NYTimes/gziphandler v1.1.1 // indirect github.com/RoaringBitmap/roaring v0.5.5