From e6bccc289b8eadf9c1c7004ceff4cff3c753bfe1 Mon Sep 17 00:00:00 2001 From: Yash Raj Singh <98258627+yrs147@users.noreply.github.com> Date: Wed, 8 May 2024 16:51:23 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BFix=20flaky=20reach=20state=20image?= =?UTF-8?q?=20installing=20test=20(#1287)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/hetznerbaremetalhost_controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/hetznerbaremetalhost_controller_test.go b/controllers/hetznerbaremetalhost_controller_test.go index 8a3f9c2e4..fc244c75f 100644 --- a/controllers/hetznerbaremetalhost_controller_test.go +++ b/controllers/hetznerbaremetalhost_controller_test.go @@ -341,7 +341,7 @@ var _ = Describe("HetznerBareMetalHostReconciler", func() { testEnv.GetLogger().Info("reaches the state image installing. Get failed", "err", err) return false } - if host.Spec.Status.ProvisioningState == infrav1.StateImageInstalling { + if host.Spec.Status.ProvisioningState == infrav1.StateImageInstalling || host.Spec.Status.ProvisioningState == infrav1.StateProvisioned { return true } testEnv.GetLogger().Info("reaches the state image installing. State",