Skip to content

Commit 013b9ae

Browse files
committed
Corrects semantics for wait timeout in TestProvisioningMachinesDerivedAZ
1 parent c2999bc commit 013b9ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

worker/provisioner/provisioner_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,9 +1902,10 @@ func (s *ProvisionerSuite) TestProvisioningMachinesDerivedAZ(c *gc.C) {
19021902
// The machine(s) arranged for provisioning failure have not yet been
19031903
// retried the specified number of times; so we wait.
19041904
id := mFail[1].Id()
1905+
timeout := time.After(coretesting.LongWait)
19051906
for e.retryCount[id] < 3 {
19061907
select {
1907-
case <-time.After(coretesting.ShortWait):
1908+
case <-timeout:
19081909
c.Fatalf("Failed provision of %q did not retry 3 times", id)
19091910
default:
19101911
}

0 commit comments

Comments
 (0)