From c07d0604264000fc5956f9f994e4b051dfe28c86 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Thu, 14 Feb 2019 12:26:58 +0100 Subject: [PATCH] Increase Timeout in UnicastZenPingTests * Just like #37268 removing another 1s timeout, those are dangerous since they're easily exceeded by an untimely gc pause * Closes #26701 --- .../org/elasticsearch/discovery/zen/UnicastZenPingTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/discovery/zen/UnicastZenPingTests.java b/server/src/test/java/org/elasticsearch/discovery/zen/UnicastZenPingTests.java index 87e65d17fd9aa..859c056292445 100644 --- a/server/src/test/java/org/elasticsearch/discovery/zen/UnicastZenPingTests.java +++ b/server/src/test/java/org/elasticsearch/discovery/zen/UnicastZenPingTests.java @@ -839,7 +839,7 @@ PingCollection pingAndWait() throws ExecutionException, InterruptedException { markTaskAsStarted("send pings"); markTaskAsStarted("send pings"); final AtomicReference response = new AtomicReference<>(); - ping(response::set, TimeValue.timeValueMillis(1), TimeValue.timeValueSeconds(1)); + ping(response::set, TimeValue.timeValueMillis(1), TimeValue.timeValueSeconds(30)); pingingRoundClosed.await(); final PingCollection result = response.get(); assertNotNull("pinging didn't complete", result);