Skip to content

Commit

Permalink
fix error case test
Browse files Browse the repository at this point in the history
  • Loading branch information
eikenb committed Feb 28, 2023
1 parent aa22e59 commit e8fd763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/connect/ca/provider_vault_auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ func TestVaultCAProvider_AliCloudAuthClient(t *testing.T) {
t.Run(name, func(t *testing.T) {
auth, err := NewAliCloudAuthClient(c.authMethod)
if c.expErr != nil {
require.Equal(t, err, c.expErr)
require.Error(t, err)
require.EqualError(t, c.expErr, err.Error())
return
}
require.NotNil(t, auth)
Expand Down

0 comments on commit e8fd763

Please sign in to comment.