From 7a6130687d3ee30bfe547c2ebc1b6e5b3aaa4c7b Mon Sep 17 00:00:00 2001 From: Gustavo Bazan Date: Mon, 25 Mar 2024 10:56:28 +0000 Subject: [PATCH] tests: correct error comparison (#2800) --- internal/cli/atlas/commonerrors/errors_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/atlas/commonerrors/errors_test.go b/internal/cli/atlas/commonerrors/errors_test.go index ccd8685109..a960872038 100644 --- a/internal/cli/atlas/commonerrors/errors_test.go +++ b/internal/cli/atlas/commonerrors/errors_test.go @@ -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) } })