diff --git a/pkg/controller/test/context_builder.go b/pkg/controller/test/context_builder.go index 515c40c67..d19c0eb8c 100644 --- a/pkg/controller/test/context_builder.go +++ b/pkg/controller/test/context_builder.go @@ -224,7 +224,7 @@ func (b *Builder) AllReactorsCalled() error { func (b *Builder) AllEventsCalled() error { var errs []error - if !util.EqualSorted(b.ExpectedEvents, b.Events()) { + if !util.EqualUnsorted(b.ExpectedEvents, b.Events()) { errs = append(errs, fmt.Errorf("got unexpected events, exp='%s' got='%s'", b.ExpectedEvents, b.Events())) }