Skip to content

Commit

Permalink
Fix timeout logic
Browse files Browse the repository at this point in the history
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
  • Loading branch information
mihaelabalutoiu committed Aug 14, 2023
1 parent bf509ad commit 6b77979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b77979

Please sign in to comment.