From 474bbdfdbd1cbe1c43a81fbcc69ecd126977b9ab Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 18 Jan 2021 11:07:23 +0100 Subject: [PATCH] LocalHTTPDManagerTest: extend timeout to 60 seconds If the job is successful, it should finish without coming closes to the timeout. Extending the timeout will make it take longer to fail, but since the job is flaky, and the related code is rarely touched, it seems worth it. --- .../java/org/fdroid/fdroid/nearby/LocalHTTPDManagerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/testFull/java/org/fdroid/fdroid/nearby/LocalHTTPDManagerTest.java b/app/src/testFull/java/org/fdroid/fdroid/nearby/LocalHTTPDManagerTest.java index 9219b0160..897080aa4 100644 --- a/app/src/testFull/java/org/fdroid/fdroid/nearby/LocalHTTPDManagerTest.java +++ b/app/src/testFull/java/org/fdroid/fdroid/nearby/LocalHTTPDManagerTest.java @@ -50,7 +50,7 @@ public class LocalHTTPDManagerTest { startLatch.countDown(); } }).start(); - assertTrue(startLatch.await(30, TimeUnit.SECONDS)); + assertTrue(startLatch.await(60, TimeUnit.SECONDS)); assertTrue(Utils.isServerSocketInUse(port)); assertTrue(Utils.canConnectToSocket(host, port)); @@ -69,6 +69,6 @@ public class LocalHTTPDManagerTest { stopLatch.countDown(); } }).start(); - assertTrue(stopLatch.await(10, TimeUnit.SECONDS)); + assertTrue(stopLatch.await(60, TimeUnit.SECONDS)); } }