juju/juju — pull request #1304 by mjs (2014-12-10 23:40:37+00:00)
Title: cmd/jujud: fixed patch race in upgrade tests

The patch to the attempt strategy used during upgrades was done just /after/ the upgrade worker had already been started so there was a race. The worker was occasionally getting the real attempt strategy instead of the test one, causing long test runs and unexpected numbers of retries.

The patch is now made before starting the worker.

Fixes LP #1389389.