Skip to content

Commit

Permalink
Undo double run of the TestWatchSemantics test to avoid hitting timeout
Browse files Browse the repository at this point in the history
Kubernetes-commit: cf2a337154f14b64923d3dace9bc2cab188dbb01
  • Loading branch information
serathius authored and k8s-publishing-bot committed Mar 19, 2024
1 parent 0946a03 commit d432100
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions pkg/storage/cacher/cacher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,9 @@ func TestSendInitialEventsBackwardCompatibility(t *testing.T) {
}

func TestWatchSemantics(t *testing.T) {
t.Run("WatchFromStorageWithoutResourceVersion=true", func(t *testing.T) {
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WatchFromStorageWithoutResourceVersion, true)()
store, terminate := testSetupWithEtcdAndCreateWrapper(t)
t.Cleanup(terminate)
storagetesting.RunWatchSemantics(context.TODO(), t, store)
})
t.Run("WatchFromStorageWithoutResourceVersion=false", func(t *testing.T) {
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WatchFromStorageWithoutResourceVersion, false)()
store, terminate := testSetupWithEtcdAndCreateWrapper(t)
t.Cleanup(terminate)
storagetesting.RunWatchSemantics(context.TODO(), t, store)
})
store, terminate := testSetupWithEtcdAndCreateWrapper(t)
t.Cleanup(terminate)
storagetesting.RunWatchSemantics(context.TODO(), t, store)
}

func TestWatchSemanticInitialEventsExtended(t *testing.T) {
Expand Down

0 comments on commit d432100

Please sign in to comment.