Skip to content

Commit f9d3322

Browse files
committed
tests: fix instability: wait for chan inject workload deletion
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent ecf27e0 commit f9d3322

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/bats/tests.bats

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,18 @@ setup_file() {
3939
helm repo add nvidia https://helm.ngc.nvidia.com/nvidia && helm repo update
4040
}
4141

42-
4342
apply_check_delete_workload_imex_chan_inject() {
4443
kubectl apply -f demo/specs/imex/channel-injection.yaml
4544
kubectl wait --for=condition=READY pods imex-channel-injection --timeout=100s
4645
run kubectl logs imex-channel-injection
47-
assert_output --partial "channel0"
4846
kubectl delete -f demo/specs/imex/channel-injection.yaml
47+
# Check output after attempted deletion.
48+
assert_output --partial "channel0"
49+
50+
# Wait for deletion to complete; this is critical before moving on to the next
51+
# test (as long as we don't wipe state entirely between tests).
52+
kubectl wait --for=delete pods imex-channel-injection --timeout=10s
53+
}
4954

5055
log_objects() {
5156
# Never fail, but show output in case a test fails, to facilitate debugging.

0 commit comments

Comments
 (0)