Merge lp:~axwalk/juju-core/worker-provisioner-test-speedup into lp:~go-bot/juju-core/trunk
Proposed by
Andrew Wilkins
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1693 |
Proposed branch: | lp:~axwalk/juju-core/worker-provisioner-test-speedup |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
19 lines (+2/-0) 1 file modified
worker/provisioner/lxc-broker_test.go (+2/-0) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/worker-provisioner-test-speedup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+181222@code.launchpad.net |
Commit message
Speed up worker/provisioner test
This cuts 10s off the tests, by forcing the
state to synchronise ahead of the 5s periodic
timer.
Description of the change
Speed up worker/provisioner test
This cuts 10s off the tests, by forcing the
state to synchronise ahead of the 5s periodic
timer.
To post a comment you must log in.
Reviewers: mp+181222_ code.launchpad. net,
Message:
Please take a look.
Description:
Speed up worker/provisioner test
This cuts 10s off the tests, by forcing the
state to synchronise ahead of the 5s periodic
timer.
https:/ /code.launchpad .net/~axwalk/ juju-core/ worker- provisioner- test-speedup/ +merge/ 181222
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/12767051/
Affected files: provisioner/ lxc-broker_ test.go
A [revision details]
M worker/
Index: [revision details] 20130821051648- ovunbhgihpcax89 h
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: worker/ provisioner/ lxc-broker_ test.go provisioner/ lxc-broker_ test.go' provisioner/ lxc-broker_ test.go 2013-07-31 23:12:58 +0000 provisioner/ lxc-broker_ test.go 2013-08-21 08:32:52 +0000
=== modified file 'worker/
--- worker/
+++ worker/
@@ -264,10 +264,12 @@
container := s.addContainer(c)
+ s.State.StartSync()
instId := s.expectStarted(c, container)
// ...and removed, along with the machine, when the machine is Dead. container. EnsureDead( ), gc.IsNil) ped(c, instId)
c.Assert(
+ s.State.StartSync()
s.expectStop
s.waitRemoved(c, container)
}