Skip to content

Commit 59a715b

Browse files
committed
fix ut error
1 parent f153cf4 commit 59a715b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

remoting/getty/getty_client_test.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,13 @@ func TestRunSuite(t *testing.T) {
5454

5555
func testRequestOneWay(t *testing.T, client *Client) {
5656
request := remoting.NewRequest("2.0.2")
57-
up := &UserProvider{}
58-
invocation := createInvocation("GetUser", nil, nil, []interface{}{[]interface{}{"1", "username"}, up},
59-
[]reflect.Value{reflect.ValueOf([]interface{}{"1", "username"}), reflect.ValueOf(up)})
57+
invocation := createInvocation("GetUser", nil, nil, []interface{}{"1", "username"},
58+
[]reflect.Value{reflect.ValueOf("1"), reflect.ValueOf("username")})
6059
attachment := map[string]string{INTERFACE_KEY: "com.ikurento.user.UserProvider"}
6160
setAttachment(invocation, attachment)
6261
request.Data = invocation
6362
request.Event = false
6463
request.TwoWay = false
65-
// user := &User{}
6664
err := client.Request(request, 3*time.Second, nil)
6765
assert.NoError(t, err)
6866
}

0 commit comments

Comments
 (0)