Skip to content

Commit 1cfa444

Browse files
committed
simplify test
Signed-off-by: wind57 <[email protected]>
1 parent 281957e commit 1cfa444

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

spring-cloud-kubernetes-fabric8-leader/src/test/java/org/springframework/cloud/kubernetes/fabric8/leader/Fabric8LeaderInitiatorTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import java.time.Duration;
2020

21-
import org.awaitility.Awaitility;
2221
import org.junit.jupiter.api.AfterEach;
2322
import org.junit.jupiter.api.BeforeEach;
2423
import org.junit.jupiter.api.Test;
@@ -77,14 +76,6 @@ void shouldStart() {
7776
assertThat(leaderInitiator.isRunning()).isTrue();
7877
verify(mockFabric8LeaderRecordWatcher).start();
7978
verify(mockFabric8PodReadinessWatcher).start();
80-
boolean[] updateCalled = new boolean[1];
81-
Mockito.doAnswer(x -> {
82-
updateCalled[0] = true;
83-
return null;
84-
}).when(mockFabric8LeadershipController).update();
85-
86-
Awaitility.await().atMost(Duration.ofSeconds(3)).until(() -> updateCalled[0]);
87-
8879
verify(mockFabric8LeadershipController, atLeastOnce()).update();
8980
}
9081

0 commit comments

Comments
 (0)