Reviewers: mp+219456_code.launchpad.net, Message: Please take a look. Description: testing: reattempt MgoInstance.run if addr in use Mongod does not support listening on port 0 to acquire an ephemeral port, so our tests must choose a port which may then be allocated to another process. This CL adds code to reattempt the starting of mongod if the port is in use, up to a maximum of 5 attempts. https://code.launchpad.net/~axwalk/juju-core/testing-mgo-addrinuse/+merge/219456 (do not edit description out of merge proposal) Please review this at https://codereview.appspot.com/94410046/ Affected files (+39, -13 lines): A [revision details] M testing/mgo.go Index: [revision details] === 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-20140513233806-k5sipwwqoqnt8gzr +New revision: