Skip to content

Commit 225749e

Browse files
committed
Undo double run of the TestWatchSemantics test to avoid hitting timeout
1 parent a1605fb commit 225749e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -381,18 +381,9 @@ func TestSendInitialEventsBackwardCompatibility(t *testing.T) {
381381
}
382382

383383
func TestWatchSemantics(t *testing.T) {
384-
t.Run("WatchFromStorageWithoutResourceVersion=true", func(t *testing.T) {
385-
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WatchFromStorageWithoutResourceVersion, true)()
386-
store, terminate := testSetupWithEtcdAndCreateWrapper(t)
387-
t.Cleanup(terminate)
388-
storagetesting.RunWatchSemantics(context.TODO(), t, store)
389-
})
390-
t.Run("WatchFromStorageWithoutResourceVersion=false", func(t *testing.T) {
391-
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WatchFromStorageWithoutResourceVersion, false)()
392-
store, terminate := testSetupWithEtcdAndCreateWrapper(t)
393-
t.Cleanup(terminate)
394-
storagetesting.RunWatchSemantics(context.TODO(), t, store)
395-
})
384+
store, terminate := testSetupWithEtcdAndCreateWrapper(t)
385+
t.Cleanup(terminate)
386+
storagetesting.RunWatchSemantics(context.TODO(), t, store)
396387
}
397388

398389
func TestWatchSemanticInitialEventsExtended(t *testing.T) {

0 commit comments

Comments
 (0)