Skip to content

Commit

Permalink
Changing tests to improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Hahn committed Jul 21, 2018
1 parent 6c2547c commit eb9ed2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func TestDoSendRPC(t *testing.T) {
mockSD.EXPECT().GetServer("myserver").Return(&cluster.Server{}, nil)
mockRPCClient.EXPECT().Call(ctx, protos.RPCType_User, gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return(&protos.Response{Data: b}, nil)
}
err := doSendRPC(ctx, "myserver", table.routeStr, table.reply, table.arg)
err := RPCTo(ctx, "myserver", table.routeStr, table.reply, table.arg)
assert.Equal(t, table.err, err)
})
}
Expand Down
2 changes: 1 addition & 1 deletion service/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func TestRemoteServiceRemoteProcess(t *testing.T) {

expectedMsg := &message.Message{
ID: uint(rand.Int()),
Type: message.Request,
Type: table.msgType,
Route: rt.Short(),
Data: []byte("ok"),
}
Expand Down

0 comments on commit eb9ed2c

Please sign in to comment.