Browse Source

Merge pull request #4366 from heyitsanthony/fix-rejectinsecure

integration: accept transient failure in TestGRPCRejectInsecureClient
Anthony Romano 10 years ago
parent
commit
64766e9d6a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      integration/v3_grpc_test.go

+ 2 - 2
integration/v3_grpc_test.go

@@ -1464,8 +1464,8 @@ func TestTLSGRPCRejectInsecureClient(t *testing.T) {
 	st, err = conn.WaitForStateChange(ctx, st)
 	if err != nil {
 		t.Fatalf("unexpected error waiting for change (%v)", err)
-	} else if st != grpc.Connecting {
-		t.Fatalf("expected connecting state, got %v", st)
+	} else if st != grpc.Connecting && st != grpc.TransientFailure {
+		t.Fatalf("expected connecting or transient failure state, got %v", st)
 	}
 
 	cancel()