Skip to content

Commit

Permalink
use context error instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ranakan19 committed Sep 4, 2024
1 parent d721a79 commit 6a7f9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsupport/wait/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ func (a *HostAwaitility) CheckMasterUserRecordIsDeleted(t *testing.T, name strin
}
return false, fmt.Errorf("the MasterUserRecord '%s' should not be present, but it is", name)
})
require.Equal(t, wait.ErrorInterrupted(goerr.New("context deadline exceeded")), err)
require.Equal(t, context.DeadlineExceeded, err)
}

func containsUserAccountStatus(uaStatuses []toolchainv1alpha1.UserAccountStatusEmbedded, uaStatus toolchainv1alpha1.UserAccountStatusEmbedded) bool {
Expand Down Expand Up @@ -1277,7 +1277,7 @@ func (a *HostAwaitility) WaitForNotificationToNotBeCreated(t *testing.T, notific
if err == nil {
return fmt.Errorf("notification '%s' was found, but it was expected to not be created/present: \n %v", notificationName, notification)
}
if goerr.Is(err, wait.ErrorInterrupted(goerr.New("context deadline exceeded"))) {
if goerr.Is(err, context.DeadlineExceeded) {
return nil
}
return err
Expand Down

0 comments on commit 6a7f9f1

Please sign in to comment.