mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-29 02:43:47 +00:00
Once the node gets deleted, the nodelifecycle controller is racing to update pod status and the pod deletion logic is failing causing tests to flake. This commit moves the testContext creation to within the test loop and deletes nodes, namespace within the test loop. We don't explicitly call the node deletion within the loop but the `testutils.CleanupTest(t, testCtx)` call ensures that the namespace, nodes gets deleted.