|
|
|
@ -96,19 +96,6 @@ func TestDepositServer_Deposit(t *testing.T) {
|
|
|
|
|
return invoker(ctx, method, req, reply, cc, opts...)
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
retryClient := MustNewClient(
|
|
|
|
|
RpcClientConf{
|
|
|
|
|
Endpoints: []string{"foo"},
|
|
|
|
|
App: "foo",
|
|
|
|
|
Token: "bar",
|
|
|
|
|
Timeout: 1000,
|
|
|
|
|
},
|
|
|
|
|
WithDialOption(grpc.WithContextDialer(dialer())),
|
|
|
|
|
WithUnaryClientInterceptor(func(ctx context.Context, method string, req, reply interface{},
|
|
|
|
|
cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
|
|
|
|
|
return invoker(ctx, method, req, reply, cc, opts...)
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
tarConfClient := MustNewClient(
|
|
|
|
|
RpcClientConf{
|
|
|
|
|
Target: "foo",
|
|
|
|
@ -133,7 +120,6 @@ func TestDepositServer_Deposit(t *testing.T) {
|
|
|
|
|
clients := []Client{
|
|
|
|
|
directClient,
|
|
|
|
|
nonBlockClient,
|
|
|
|
|
retryClient,
|
|
|
|
|
tarConfClient,
|
|
|
|
|
targetClient,
|
|
|
|
|
}
|
|
|
|
|