303
303
c.Assert(reusedMachine.Id(), Equals, origMachine.Id())
305
305
// Check that it fails when called again, even when there's an available machine
308
308
_, err = newUnit.AssignToUnusedMachine()
309
309
c.Assert(err, ErrorMatches, `cannot assign unit "riak/0" to unused machine: unit is already assigned to a machine`)