Skip to content

Commit

Permalink
use wait.Interrupted (#15342)
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso authored Jun 25, 2024
1 parent 48d3196 commit d6d8525
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/e2e/gc/gc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package gc

import (
"context"
"errors"
"testing"
"time"

Expand Down Expand Up @@ -88,7 +87,7 @@ func TestRevisionGC(t *testing.T) {
}
return false, err
})
if errors.Is(err, wait.ErrWaitTimeout) {
if wait.Interrupted(err) {
t.Fatalf("Got revision %v, expected not_found", originalRevision)
}
if err != nil {
Expand Down

0 comments on commit d6d8525

Please sign in to comment.