From 225749eb68b3aa3485a1f2dc5d0cafb5dfe53421 Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Tue, 19 Mar 2024 15:16:52 +0100 Subject: [PATCH] Undo double run of the TestWatchSemantics test to avoid hitting timeout --- .../apiserver/pkg/storage/cacher/cacher_test.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go b/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go index 8c057da40e4..01995b1b1b6 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go @@ -381,18 +381,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) {