Skip to content

Commit

Permalink
Small test readability fixes (#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbza authored and menghanl committed Apr 11, 2018
1 parent 858463a commit db0f071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func TestOneAddressRemoval(t *testing.T) {
// After sleepDuration, invoke RPC.
// 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 {
t.Errorf("grpc.Invoke(_, _, _, _, _) = %v, want not nil", err)
t.Errorf("grpc.Invoke(_, _, _, _, _) = %v, want nil", err)
}
wg.Done()
}()
Expand Down Expand Up @@ -795,7 +795,7 @@ func TestPickFirstOneAddressRemoval(t *testing.T) {
// After sleepDuration, invoke RPC.
// 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 {
t.Errorf("grpc.Invoke(_, _, _, _, _) = %v, want not nil", err)
t.Errorf("grpc.Invoke(_, _, _, _, _) = %v, want nil", err)
}
wg.Done()
}()
Expand Down

0 comments on commit db0f071

Please sign in to comment.