From 6b77979ab503b13f686babef0857c789c75df9de Mon Sep 17 00:00:00 2001 From: Mihaela Balutoiu Date: Mon, 14 Aug 2023 14:33:46 +0300 Subject: [PATCH] Fix timeout logic Signed-off-by: Mihaela Balutoiu --- test/integration/e2e.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/e2e.go b/test/integration/e2e.go index ee7a864a..3416a80e 100644 --- a/test/integration/e2e.go +++ b/test/integration/e2e.go @@ -734,7 +734,7 @@ func WaitRepoPoolNoInstances(timeout time.Duration) { pool, err = getRepoPool(cli, authToken, repoID, repoPoolID) handleError(err) if len(pool.Instances) == 0 { - break + return } time.Sleep(5 * time.Second) timeWaited += 5 * time.Second @@ -947,7 +947,7 @@ func WaitOrgPoolNoInstances(timeout time.Duration) { pool, err = getOrgPool(cli, authToken, orgID, orgPoolID) handleError(err) if len(pool.Instances) == 0 { - break + return } time.Sleep(5 * time.Second) timeWaited += 5 * time.Second