Skip to content

Commit

Permalink
Merge pull request kubevirt#481 from rmohr/unit-fix
Browse files Browse the repository at this point in the history
Fix event order check in unit tests
  • Loading branch information
davidvossel authored Oct 2, 2017
2 parents 3306bd7 + b48df62 commit e107fa6
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 e107fa6

Please sign in to comment.