Fix event order check in unit tests
Don't assume specific event order when VMs are created in parallel in
the replicaset unit tests.
@@ -382,8 +382,7 @@ var _ = Describe("Replicaset", func() {
controller.Execute()
- expectEvent(recorder, SuccessfulCreateVirtualMachineReason)
- expectEvent(recorder, FailedCreateVirtualMachineReason)
+ expectEvents(recorder, SuccessfulCreateVirtualMachineReason, FailedCreateVirtualMachineReason)
})
It("should add a fail condition if scaling down fails", func() {
