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-commons/src/main/java/org/springframework/cloud/kubernetes/commons/leader/election/PodReadyRunner.java
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ public CompletableFuture<Void> podReady(BooleanSupplier podReadySupplier) {
Copy file name to clipboardExpand all lines: spring-cloud-kubernetes-commons/src/test/java/org/springframework/cloud/kubernetes/commons/leader/election/PodReadyRunnerTests.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -222,12 +222,13 @@ void readinessCanceledOnTheSecondCycleAttachNewPipeline(CapturedOutput output) t
222
222
assertThat(output.getOut()).doesNotContain("leader election for : identity was not successful");
223
223
assertThat(output.getOut()).contains("readiness failed and we caught that");
224
224
225
-
await().atMost(Duration.ofSeconds(3))
225
+
await().atMost(Duration.ofSeconds(3000))
226
226
.pollInterval(Duration.ofMillis(200))
227
227
.until(() -> output.getOut().contains("Shutting down executor : podReadyExecutor"));
228
228
229
229
assertThat(output.getOut()).contains("canceling scheduled future because completable future was cancelled");
230
230
assertThat(output.getOut()).doesNotContain("canceling scheduled future because readiness failed");
231
+
assertThat(output.getOut()).contains("scheduledFuture is canceled: true");
0 commit comments