Skip to content

Commit

Permalink
update error msg
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Leung <kleung@chainguard.dev>
  • Loading branch information
k4leung4 committed Aug 21, 2022
1 parent 7c4b13e commit c0a4203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/grpc_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,8 @@ func TestAPIWithInsecurePublicKey(t *testing.T) {
},
},
})
if err == nil || !strings.Contains(err.Error(), "The public key supplied in the request is insecure") {
t.Fatalf("expected insecure public key error, got %v", err)
if err == nil || !strings.Contains(err.Error(), "The public key supplied in the request could not be parsed") {
t.Fatalf("expected request could not be parsed error, got %v", err)
}
if status.Code(err) != codes.InvalidArgument {
t.Fatalf("expected invalid argument, got %v", status.Code(err))
Expand Down

0 comments on commit c0a4203

Please sign in to comment.