juju/juju — pull request #1330 by mjs (2014-12-17 04:44:26+00:00)
Title: cmd/jujud: fixed patch race in upgrade tests (backport to 1.21)

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.