Skip to content

Commit

Permalink
Merge pull request grpc#861 from iamqizhao/master
Browse files Browse the repository at this point in the history
Add an err logging to testFailFast
  • Loading branch information
menghanl authored Aug 26, 2016
2 parents b7aa4e9 + 935fb21 commit d4b6ce0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/end2end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,11 @@ func testFailFast(t *testing.T, e env) {
te.srv.Stop()
// Loop until the server teardown is propagated to the client.
for {
if _, err := tc.EmptyCall(context.Background(), &testpb.Empty{}); grpc.Code(err) == codes.Unavailable {
_, err := tc.EmptyCall(context.Background(), &testpb.Empty{})
if grpc.Code(err) == codes.Unavailable {
break
}
fmt.Printf("%v.EmptyCall(_, _) = _, %v", tc, err)
time.Sleep(10 * time.Millisecond)
}
// The client keeps reconnecting and ongoing fail-fast RPCs should fail with code.Unavailable.
Expand Down

0 comments on commit d4b6ce0

Please sign in to comment.