We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd48e50 commit 5cdef32Copy full SHA for 5cdef32
internal/actionwait/wait_test.go
@@ -307,8 +307,8 @@ func TestWaitForStatus_UnexpectedStateErrorMessage(t *testing.T) {
307
if err == nil {
308
t.Fatal("expected unexpected state error")
309
}
310
- unexpectedErr, ok := err.(*UnexpectedStateError)
311
- if !ok { //nolint:errorlint // direct type assertion adequate in tests
+ var unexpectedErr *UnexpectedStateError
+ if !errors.As(err, &unexpectedErr) {
312
t.Fatalf("expected UnexpectedStateError, got %T", err)
313
314
errMsg := unexpectedErr.Error()
0 commit comments