k3s/tests/auto-deploy: fix race condition

Co-authored-by: wrmilling marcusramberg
This commit is contained in:
superherointj
2024-07-12 17:58:00 -03:00
co-authored by wrmilling marcusramberg
parent e4d5a9864a
commit e3e012325b
+2 -2
View File
@@ -109,8 +109,8 @@ import ../make-test-python.nix (
machine.succeed("ls /var/lib/rancher/k3s/server/manifests/hello.yaml")
# check if container images got imported
machine.succeed("crictl img | grep 'test\.local/pause'")
machine.succeed("crictl img | grep 'test\.local/hello'")
machine.wait_until_succeeds("crictl img | grep 'test\.local/pause'")
machine.wait_until_succeeds("crictl img | grep 'test\.local/hello'")
# check if resources of manifests got created
machine.wait_until_succeeds("kubectl get ns foo")