Small test readability fixes (#1985)

This commit is contained in:
Jean de Klerk
2018-04-11 10:12:06 -07:00
committed by Menghan Li
parent 858463ac27
commit db0f0713e3

View File

@ -434,7 +434,7 @@ func TestOneAddressRemoval(t *testing.T) {
// After sleepDuration, invoke RPC. // After sleepDuration, invoke RPC.
// server[0] is removed around the same time to make it racy between balancer and gRPC internals. // server[0] is removed around the same time to make it racy between balancer and gRPC internals.
if err := cc.Invoke(context.Background(), "/foo/bar", &expectedRequest, &reply, FailFast(false)); err != nil { if err := cc.Invoke(context.Background(), "/foo/bar", &expectedRequest, &reply, FailFast(false)); err != nil {
t.Errorf("grpc.Invoke(_, _, _, _, _) = %v, want not nil", err) t.Errorf("grpc.Invoke(_, _, _, _, _) = %v, want nil", err)
} }
wg.Done() wg.Done()
}() }()
@ -795,7 +795,7 @@ func TestPickFirstOneAddressRemoval(t *testing.T) {
// After sleepDuration, invoke RPC. // After sleepDuration, invoke RPC.
// server[0] is removed around the same time to make it racy between balancer and gRPC internals. // server[0] is removed around the same time to make it racy between balancer and gRPC internals.
if err := cc.Invoke(context.Background(), "/foo/bar", &expectedRequest, &reply, FailFast(false)); err != nil { if err := cc.Invoke(context.Background(), "/foo/bar", &expectedRequest, &reply, FailFast(false)); err != nil {
t.Errorf("grpc.Invoke(_, _, _, _, _) = %v, want not nil", err) t.Errorf("grpc.Invoke(_, _, _, _, _) = %v, want nil", err)
} }
wg.Done() wg.Done()
}() }()