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 13, 2024
1 parent fd4a853 commit 8f715f7
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 @@ -506,7 +506,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 @@ -542,6 +541,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 8f715f7

Please sign in to comment.