~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to environs/testing/polling.go

[r=wallyworld] New assignment policy is AssignCleanEmpty

Add container support to AssignClean(Empty) policies and make
the default policy AssignCleanEmpty. This allows manual deployment
of charms into existing clean and empty containers/instances, with
the fallback that a new container/instance is created if none are
available. The system behaves the same as previously if a simple
bootstrap and deploy is performed, but if add-machine is used to
create some containers/instances, then those are no longer ignored.

https://codereview.appspot.com/11019044/

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
// impatientAttempt is an extremely short polling time suitable for tests.
14
14
// It's aimed to be just long enough that the AttemptStrategy implementation
15
15
// will yield at least once, but short enough that the test suite won't spend
16
 
// much of its time sleeping. 
 
16
// much of its time sleeping.
17
17
var impatientAttempt = utils.AttemptStrategy{
18
18
        Total: 100 * time.Millisecond,
19
19
        Delay: 10 * time.Millisecond,