From e3e012325b3e36b4e6d1df99875cdd16976c208e Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:57:50 -0300 Subject: [PATCH] k3s/tests/auto-deploy: fix race condition Co-authored-by: wrmilling marcusramberg --- nixos/tests/k3s/auto-deploy.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/k3s/auto-deploy.nix b/nixos/tests/k3s/auto-deploy.nix index d60aede950e7..11eed4aef95f 100644 --- a/nixos/tests/k3s/auto-deploy.nix +++ b/nixos/tests/k3s/auto-deploy.nix @@ -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")