Skip to content

Commit 48513b9

Browse files
csvirimetacosm
andauthored
fix: flaxy EventProcessorTest.triggerOnAllEventDeleteEventInstantlyAfterEvent (#3003)
Signed-off-by: Attila Mészáros <a_meszaros@apple.com> Co-authored-by: Chris Laprun <metacosm@users.noreply.github.com>
1 parent 6229ff6 commit 48513b9

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 is 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)