* A second backend is started, after the writers and the listener were
instanciated.
* The test fails, because the listener does not see messages, that are
send by the writers after the rebalance finishes.
* Also changed the durations, that the setup waits for newly
started backend-instances.
"Received message: {}",
message));
- log.info("Sleeping for 2 seconds...");
- Thread.sleep(2000);
+ log.info("Starting backend-2...");
+ containers.startBackend(containers.backend2, testWriters);
+ log.info("backend-2 started!");
for (int i = 0; i < NUM_CLIENTS; i++)
{
before = Instant.now();
Awaitility
.await()
- .atMost(Duration.ofSeconds(30))
+ .atMost(Duration.ofSeconds(45))
.until(() -> WebClient
.create(backendUri)
.get()
before = Instant.now();
Awaitility
.await()
- .atMost(Duration.ofSeconds(30))
+ .atMost(Duration.ofSeconds(15))
.until(() -> WebClient
.create("http://localhost:" + haproxy.getMappedPort(8400))
.get()