Skip to content

Commit 0084d61

Browse files
committed
Fix flaky TestUpdates unit test
Signed-off-by: Christoph Blecker <[email protected]>
1 parent 3bcb36a commit 0084d61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pkg/controller/operators/olm/operator_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3923,9 +3923,10 @@ func TestUpdates(t *testing.T) {
39233923
simulateSuccessfulRollout(current, op.opClient)
39243924
}
39253925
for current.Status.Phase != e.whenIn.phase {
3926-
fmt.Printf("waiting for (when) %s to be %s\n", e.whenIn.name, e.whenIn.phase)
39273926
csvsToSync = syncCSVs(csvsToSync, deletedCSVs(e.shouldBe))
39283927
current = csvsToSync[e.whenIn.name]
3928+
fmt.Printf("waiting for (when) %s to be %s\n", e.whenIn.name, e.whenIn.phase)
3929+
time.Sleep(1 * time.Millisecond)
39293930
}
39303931

39313932
// sync the other csvs until they're in the expected status

0 commit comments

Comments
 (0)