You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/10/29 04:53:18 UTC
[camel] branch master updated: Fixed flaky test
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new df954aa Fixed flaky test
df954aa is described below
commit df954aa410a4e742802108dd37ae15b007668a33
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Oct 29 05:53:04 2019 +0100
Fixed flaky test
---
.../apache/camel/spring/boot/SupervisingRouteControllerTest.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SupervisingRouteControllerTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SupervisingRouteControllerTest.java
index 7d9c495..3629f3b 100644
--- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SupervisingRouteControllerTest.java
+++ b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SupervisingRouteControllerTest.java
@@ -68,8 +68,11 @@ public class SupervisingRouteControllerTest {
SupervisingRouteController controller = context.getRouteController().unwrap(SupervisingRouteController.class);
- Assert.assertEquals(3, controller.getControlledRoutes().size());
- Assert.assertEquals(2, controller.getInitialDelay().getSeconds());
+ // Wait for the controller to start the routes
+ await().atMost(3, TimeUnit.SECONDS).untilAsserted(() -> {
+ Assert.assertEquals(3, controller.getControlledRoutes().size());
+ Assert.assertEquals(2, controller.getInitialDelay().getSeconds());
+ });
// Route foo
BackOff foo = controller.getBackOff("foo");