Skip to content

Commit

Permalink
Fix event order check in unit tests
Browse files Browse the repository at this point in the history
Don't assume specific event order when VMs are created in parallel in
the replicaset unit tests.

Signed-off-by: Roman Mohr <[email protected]>
  • Loading branch information
rmohr committed Oct 2, 2017
1 parent 3306bd7 commit b48df62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/virt-controller/watch/replicaset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b48df62

Please sign in to comment.