Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/e2e-ocl-1of2/onclusterlayering_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,10 @@ func waitForMOSCToUpdateCurrentMOSB(ctx context.Context, t *testing.T, cs *frame
}

currentMOSB = mosc.GetAnnotations()[constants.CurrentMachineOSBuildAnnotationKey]
return currentMOSB != mosbName, nil
// Wait for annotation to be non-empty AND different from the old MOSB.
// The stale annotation fix may temporarily clear the annotation, so we need
// to wait for the new MOSB to be created and annotation set.
return currentMOSB != "" && currentMOSB != mosbName, nil

}))
return currentMOSB
Expand Down