Skip to content

Commit

Permalink
tests: correct error comparison (#2800)
Browse files Browse the repository at this point in the history
  • Loading branch information
gssbzn committed Mar 25, 2024
1 parent ffb3129 commit 7a61306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/atlas/commonerrors/errors_test.go
Expand Up @@ -53,7 +53,7 @@ func TestCheck(t *testing.T) {

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
if got := Check(tc.err); got != tc.want {
if got := Check(tc.err); !errors.Is(got, tc.want) {
t.Errorf("Check(%v) = %v, want %v", tc.err, got, tc.want)
}
})
Expand Down

0 comments on commit 7a61306

Please sign in to comment.