Skip to content

Commit 0cc5950

Browse files
committed
remove obsolete test
1 parent b5d00dd commit 0cc5950

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

operator-framework/src/test/java/com/github/containersolutions/operator/EventSchedulerTest.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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();

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
<configuration>
9393
<includes>
9494
<include>**/*IT.java</include>
95+
<include>**/*Test.java</include>
9596
</includes>
9697
</configuration>
9798
</plugin>

0 commit comments

Comments
 (0)