Skip to content
Snippets Groups Projects
Commit add1618e authored by LaurenceLiZhixin's avatar LaurenceLiZhixin
Browse files

fix: conflict

parent 833c829f
No related branches found
No related tags found
No related merge requests found
...@@ -132,19 +132,11 @@ func TestProxyImplementForContext(t *testing.T) { ...@@ -132,19 +132,11 @@ func TestProxyImplementForContext(t *testing.T) {
p := NewProxy(invoker, nil, map[string]string{constant.ASYNC_KEY: "false"}) p := NewProxy(invoker, nil, map[string]string{constant.ASYNC_KEY: "false"})
s := &TestService{} s := &TestService{}
p.Implement(s) 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 := make(map[string]interface{}, 4)
attachments1["k1"] = "v1" attachments1["k1"] = "v1"
attachments1["k2"] = "v2" attachments1["k2"] = "v2"
context := context.WithValue(context.Background(), constant.AttachmentKey, attachments1) context := context.WithValue(context.Background(), constant.AttachmentKey, attachments1)
r, err := p.Get().(*TestService).MethodSix(context, "xxx") r, err := p.Get().(*TestService).MethodSix(context, "xxx")
>>>>>>> develop
v1 := r.(map[string]interface{}) v1 := r.(map[string]interface{})
assert.NoError(t, err) assert.NoError(t, err)
assert.Equal(t, v1["TestProxyInvoker"], "TestProxyInvokerValue") assert.Equal(t, v1["TestProxyInvoker"], "TestProxyInvokerValue")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment