Skip to content

Commit c913167

Browse files
committed
fix integration test
Signed-off-by: Attila Mészáros <[email protected]>
1 parent ca2e47e commit c913167

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/filterpatchevent/FilterPatchEventTestReconciler.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ public UpdateControl<FilterPatchEventTestCustomResource> reconcile(
4242
resource.setStatus(new FilterPatchEventTestCustomResourceStatus());
4343
resource.getStatus().setValue(UPDATED);
4444

45-
return UpdateControl.patchStatus(resource).reschedule();
45+
var uc = UpdateControl.patchStatus(resource);
46+
if (!filterPatchEvent.get()) {
47+
uc = uc.reschedule();
48+
}
49+
return uc;
4650
}
4751

4852
public int getNumberOfExecutions() {

0 commit comments

Comments
 (0)