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() {
84
84
.has (new Condition <>(e -> e .getException () == null , "" ), atIndex (1 ));
85
85
}
86
86
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
-
105
87
@ Test
106
88
public void schedulesEventIfOlderVersionIsAlreadyUnderProcessing () {
107
89
normalDispatcherExecution ();
Original file line number Diff line number Diff line change 92
92
<configuration >
93
93
<includes >
94
94
<include >**/*IT.java</include >
95
+ <include >**/*Test.java</include >
95
96
</includes >
96
97
</configuration >
97
98
</plugin >
You can’t perform that action at this time.
0 commit comments