Skip to content

Commit

Permalink
fix vet error
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuazhang committed Oct 30, 2020
1 parent 386b266 commit f5c5fae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/insecure_creds_test.go
Expand Up @@ -48,10 +48,6 @@ func (cr testLegacyPerRPCCredentials) RequireTransportSecurity() bool {
return true
}

func isExpectedError(got, want error) bool {
return status.Code(got) == status.Code(want) && strings.Contains(status.Convert(got).Message(), status.Convert(want).Message())
}

// TestInsecureCreds tests the use of insecure creds on the server and client
// side, and verifies that expect security level and auth info are returned.
// Also verifies that this credential can interop with existing `WithInsecure`
Expand Down Expand Up @@ -197,6 +193,9 @@ func (s) TestInsecureCredsWithPerRPCCredentials(t *testing.T) {

if test.perRPCCredsViaCallOptions {
cc, err := grpc.DialContext(ctx, addr, cOpts...)
if err != nil {
t.Fatalf("grpc.Dial(%q) failed: %v", addr, err)
}
defer cc.Close()

c := testpb.NewTestServiceClient(cc)
Expand Down

0 comments on commit f5c5fae

Please sign in to comment.