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 132cfcb commit d9b212bCopy full SHA for d9b212b
pkg/controllers/clusterresourceplacement/controller_test.go
@@ -2705,8 +2705,8 @@ func TestGetOrCreateClusterResourceSnapshot(t *testing.T) {
2705
cmpopts.IgnoreFields(runtime.RawExtension{}, "Raw"),
2706
}
2707
if tc.wantRequeue {
2708
- if res.RequeueAfter == 0 {
2709
- t.Fatalf("getOrCreateClusterResourceSnapshot() got RequeueAfter %v, want non-zero value", res.RequeueAfter)
+ if res.RequeueAfter <= 0 {
+ t.Fatalf("getOrCreateClusterResourceSnapshot() got RequeueAfter %v, want greater than zero value", res.RequeueAfter)
2710
2711
} else {
2712
if diff := cmp.Diff(tc.wantResourceSnapshots[tc.wantLatestSnapshotIndex], *got, options...); diff != "" {
0 commit comments