Skip to content

Commit 8b90c9e

Browse files
committed
lint
Signed-off-by: Omer Aplatony <[email protected]>
1 parent 9916513 commit 8b90c9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func (c *DiscoveryController) Run(stopCh <-chan struct{}, synchedCh chan<- struc
316316
}
317317
return true, nil
318318
}); err != nil {
319-
if errors.Is(err, context.Canceled) {
319+
if errors.Is(err, context.DeadlineExceeded) {
320320
utilruntime.HandleError(fmt.Errorf("timed out waiting for initial discovery sync"))
321321
return
322322
}

staging/src/k8s.io/apiextensions-apiserver/test/integration/validation_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package integration
1818

1919
import (
2020
"context"
21+
"errors"
2122
"fmt"
2223
"strings"
2324
"testing"
@@ -1540,7 +1541,7 @@ properties:
15401541
}
15411542
return true, nil
15421543
})
1543-
if err != context.DeadlineExceeded {
1544+
if !errors.Is(err, context.DeadlineExceeded) {
15441545
t.Fatalf("expected no NonStructuralSchema condition, but got one: %v", cond)
15451546
}
15461547
return

0 commit comments

Comments
 (0)