Skip to content

Commit 7a61306

Browse files
author
Gustavo Bazan
authored
tests: correct error comparison (#2800)
1 parent ffb3129 commit 7a61306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cli/atlas/commonerrors/errors_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestCheck(t *testing.T) {
5353

5454
for _, tc := range testCases {
5555
t.Run(tc.name, func(t *testing.T) {
56-
if got := Check(tc.err); got != tc.want {
56+
if got := Check(tc.err); !errors.Is(got, tc.want) {
5757
t.Errorf("Check(%v) = %v, want %v", tc.err, got, tc.want)
5858
}
5959
})

0 commit comments

Comments
 (0)