From c32a65276e4e22dcf531224c25b61075763d9723 Mon Sep 17 00:00:00 2001 From: Nick Tran <10810510+njtran@users.noreply.github.com> Date: Fri, 6 Oct 2023 12:49:47 -0700 Subject: [PATCH] test: fix termination test flake (#576) --- pkg/controllers/termination/suite_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controllers/termination/suite_test.go b/pkg/controllers/termination/suite_test.go index 01944c18cef1..d28c1cf520c2 100644 --- a/pkg/controllers/termination/suite_test.go +++ b/pkg/controllers/termination/suite_test.go @@ -310,10 +310,10 @@ var _ = Describe("Termination", func() { node = ExpectNodeExists(ctx, env.Client, node.Name) ExpectReconcileSucceeded(ctx, terminationController, client.ObjectKeyFromObject(node)) ExpectReconcileSucceeded(ctx, queue, client.ObjectKey{}) - ExpectEvicted(env.Client, podNodeCritical) - ExpectDeleted(ctx, env.Client, podNodeCritical) ExpectReconcileSucceeded(ctx, queue, client.ObjectKey{}) + ExpectEvicted(env.Client, podNodeCritical) ExpectEvicted(env.Client, podClusterCritical) + ExpectDeleted(ctx, env.Client, podNodeCritical) ExpectDeleted(ctx, env.Client, podClusterCritical) // Reconcile to delete node