Skip to content

Commit b27734b

Browse files
committed
ensure immediate cleanup in tests
1 parent 1eac8f7 commit b27734b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/supervisor/src/services/failedPodHandler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ async function deleteAllPodsInNamespace({
573573
const podNames = pods.items.map((p) => p.metadata?.name ?? "");
574574

575575
// Delete all pods
576-
await k8sApi.core.deleteCollectionNamespacedPod({ namespace });
576+
await k8sApi.core.deleteCollectionNamespacedPod({ namespace, gracePeriodSeconds: 0 });
577577

578578
// Wait for all pods to be deleted
579579
await waitForPodsDeletion({ k8sApi, namespace, podNames });

apps/supervisor/src/services/podCleaner.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe("PodCleaner Integration Tests", () => {
2929
register.clear();
3030

3131
// Delete all pods in the namespace
32-
await k8s.core.deleteCollectionNamespacedPod({ namespace });
32+
await k8s.core.deleteCollectionNamespacedPod({ namespace, gracePeriodSeconds: 0 });
3333
});
3434

3535
it("should clean up succeeded pods", async () => {

0 commit comments

Comments
 (0)