From 9087a160e214854d8736e8e280c4b9869d96e8bc Mon Sep 17 00:00:00 2001 From: edibble21 <85638465+edibble21@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:21:38 -0800 Subject: [PATCH] test: Fixed termination test flake (#7449) --- test/suites/termination/termination_grace_period_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/suites/termination/termination_grace_period_test.go b/test/suites/termination/termination_grace_period_test.go index 4763b8cc8a2f..629ef5ba8acb 100644 --- a/test/suites/termination/termination_grace_period_test.go +++ b/test/suites/termination/termination_grace_period_test.go @@ -54,7 +54,9 @@ var _ = Describe("TerminationGracePeriod", func() { return t.MatchTaint(&karpv1.DisruptedNoScheduleTaint) }) g.Expect(ok).To(BeTrue()) - }).WithTimeout(3 * time.Second).WithPolling(100 * time.Millisecond).Should(Succeed()) + //Reduced polling time from 100 to 50 to mitigate flakes + //TODO Investigate root cause of timing sensitivity and restructure test + }).WithTimeout(3 * time.Second).WithPolling(50 * time.Millisecond).Should(Succeed()) // Check that pod remains healthy until termination grace period // subtract the polling time of the eventually above to reduce any races.