You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-fabric8-leader/src/test/java/org/springframework/cloud/kubernetes/fabric8/leader/election/it/Fabric8LeaderElectionSimpleITTest.java
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,14 @@ static void afterAll() {
78
78
@Test
79
79
voidtest(CapturedOutputoutput) {
80
80
81
+
// we have become the leader
82
+
Awaitility.await()
83
+
.atMost(Duration.ofSeconds(10))
84
+
.pollInterval(Duration.ofSeconds(1))
85
+
.until(() -> output.getOut().contains("simple-it is the new leader"));
86
+
87
+
// let's unwind some logs to see that the process is how we expect it to be
88
+
81
89
// 1. lease is used as the lock (comes from our code)
82
90
assertThat(output.getOut()).contains(
83
91
"will use lease as the lock for leader election");
0 commit comments