integration: accept transient failure state in TestGRPCRejectInsecureClient

This commit is contained in:
Anthony Romano 2016-02-01 11:32:22 -08:00
parent 4ba1ec6a4d
commit 7d8ae8af78

View File

@ -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()