~mattyw/juju-core/ensure-availability-more-output

Viewing all changes in revision 2747.

[r=axwalk],[bug=1319652] worker/instancepoller: TestBatching less race-y

The existing TestBatching test was very prone to
failure due to the nature of the test. The test
ensures that requests to Instances are batched
using a token bucket.

Whereas the existing test streamed requests, the
new implementation compresses the addition of
requests into the point where we service an
Instances call. We can thus reliably determine
the number of batches that will be made, as calls
to Instances must complete before additional
requests are gathered.

Fixes lp:1319652

https://codereview.appspot.com/96440043/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: