Skip to content

Commit d02c093

Browse files
committed
fix: flaxy EventProcessorTest.triggerOnAllEventDeleteEventInstantlyAfterEvent
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 6229ff6 commit d02c093

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/event/EventProcessorTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,9 @@ void triggerOnAllEventDeleteEventInstantlyAfterEvent() {
562562
eventProcessor.handleEvent(prepareCRDeleteEvent1());
563563

564564
waitUntilProcessingFinished(eventProcessor, TestUtils.testCustomResource1Id());
565-
verify(reconciliationDispatcherMock, times(1)).handleExecution(any());
565+
// it es expected to be usually called only once, but it can happen based on timing that called
566+
// twice
567+
verify(reconciliationDispatcherMock, atMost(2)).handleExecution(any());
566568
}
567569

568570
@Test

0 commit comments

Comments
 (0)