Skip to content

Commit

Permalink
Update secrets/secrets_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yuxuan 'fishy' Wang <[email protected]>
  • Loading branch information
folone and fishy authored Feb 5, 2024
1 parent 8861974 commit d3e6efc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions secrets/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ func TestSecretsWrongType(t *testing.T) {
if err != nil {
t.Fatal(err)
}
_, err = tt.function(secrets)
if tt.expectedError != nil && err.Error() != tt.expectedError.Error() {
if _, err := tt.function(secrets); !errors.Is(err, tt.expectedError) {
t.Fatalf("expected error %v, actual: %v", tt.expectedError, err)
}
})
Expand Down

0 comments on commit d3e6efc

Please sign in to comment.