Merge pull request #152 from mihaelabalutoiu/fix-timeout-logic
Fix timeout logic
This commit is contained in:
commit
10cc209105
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue