mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-09 05:06:38 +10:00
Fix flaky test by using EqualUnsorted to compare Events
Supplants https://github.com/jetstack/cert-manager/pull/4297 Signed-off-by: Richard Wall <richard.wall@jetstack.io>
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user