Skip to content

Commit

Permalink
Fix TestCacheResourcesCleanedUpOnDisable flaky failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanemerson committed Mar 4, 2024
1 parent 075e3be commit 4438a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ func TestConfigListenerFailover(t *testing.T) {
}

func TestCacheResourcesCleanedUpOnDisable(t *testing.T) {
t.Parallel()
defer testKube.CleanNamespaceAndLogOnPanic(t, tutils.Namespace)

ispn := initCluster(t, true)
Expand Down Expand Up @@ -544,6 +543,7 @@ func TestCacheResourcesCleanedUpOnDisable(t *testing.T) {
cr.Spec.Template = cacheConfig
tutils.ExpectNoError(controllerutil.SetControllerReference(ispn, cr, testKube.Kubernetes.Client.Scheme()))
testKube.Create(cr)
testKube.WaitForCacheConditionReady(cacheName, ispn.Name, tutils.Namespace)

// Delete the cache on the server so the CR becomes stale
cacheHelper.Delete()
Expand Down

0 comments on commit 4438a02

Please sign in to comment.