Descriptionmock_test server uses fixed order
Update lp 1299958
In a previous attempt to fix this issue it was pointed out that the order of the top level is important. https://codereview.appspot.com/82490043/#msg2
However the mock server does not respect any order as the fakeMachines are stored in a map.
This CL attempts to solve the problem by storing fake machines in a slice. However if you run this test repeatedly you will see the results are still not stable and in fact the test was relying on a small map to order its keys.
https://code.launchpad.net/~dave-cheney/juju-core/124-worker-peergrouper-mock-fix/+merge/214170
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 5
|