File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed
operator-framework/src/test/java/com/github/containersolutions/operator Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -84,24 +84,6 @@ public void retriesEventsWithErrors() {
8484 .has (new Condition <>(e -> e .getException () == null , "" ), atIndex (1 ));
8585 }
8686
87-
88- @ Test
89- public void discardsEventIfThereWereANewerVersionProcessedBefore () throws InterruptedException {
90- normalDispatcherExecution ();
91- CustomResource resource1 = sampleResource ();
92- CustomResource resource2 = sampleResource ();
93- resource2 .getMetadata ().setResourceVersion ("2" );
94-
95- CompletableFuture .runAsync (() -> eventScheduler .eventReceived (Watcher .Action .MODIFIED , resource2 ));
96- Thread .sleep (50 );
97- CompletableFuture .runAsync (() -> eventScheduler .eventReceived (Watcher .Action .MODIFIED , resource1 ));
98-
99- waitTimeForExecution (2 );
100-
101- assertThat (eventProcessingList ).hasSize (1 ).has (new Condition <>(e -> e .getCustomResource ().getMetadata ().getResourceVersion ().equals ("2" ),
102- "Just handles event that arrived first" ), atIndex (0 ));
103- }
104-
10587 @ Test
10688 public void schedulesEventIfOlderVersionIsAlreadyUnderProcessing () {
10789 normalDispatcherExecution ();
Original file line number Diff line number Diff line change 9292 <configuration >
9393 <includes >
9494 <include >**/*IT.java</include >
95+ <include >**/*Test.java</include >
9596 </includes >
9697 </configuration >
9798 </plugin >
You can’t perform that action at this time.
0 commit comments