Skip to content

Commit

Permalink
Merge pull request #152 from mihaelabalutoiu/fix-timeout-logic
Browse files Browse the repository at this point in the history
Fix timeout logic
  • Loading branch information
gabriel-samfira authored Aug 14, 2023
2 parents bf509ad + 6b77979 commit 10cc209
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 10cc209

Please sign in to comment.