Skip to content

Commit 5cdef32

Browse files
committed
Modern errors
1 parent cd48e50 commit 5cdef32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/actionwait/wait_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ func TestWaitForStatus_UnexpectedStateErrorMessage(t *testing.T) {
307307
if err == nil {
308308
t.Fatal("expected unexpected state error")
309309
}
310-
unexpectedErr, ok := err.(*UnexpectedStateError)
311-
if !ok { //nolint:errorlint // direct type assertion adequate in tests
310+
var unexpectedErr *UnexpectedStateError
311+
if !errors.As(err, &unexpectedErr) {
312312
t.Fatalf("expected UnexpectedStateError, got %T", err)
313313
}
314314
errMsg := unexpectedErr.Error()

0 commit comments

Comments
 (0)