[tor-commits] [onionoo/master] Increase test timeout from 100 to 200ms.

karsten at torproject.org karsten at torproject.org
Mon Oct 30 16:03:30 UTC 2017


commit efa4cd87935e7ce0a6979506b53a44c32b932c2b
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Mon Oct 30 17:00:24 2017 +0100

    Increase test timeout from 100 to 200ms.
    
    The testCountryDeDe typically requires around 80 to 100ms to complete,
    which makes our test timeout of 100ms somewhat optimistic. The reason
    is that it's the first test method that is run in this test class, and
    it takes some time to initialize the test environment. This is just a
    hotfix, but it's also not really a serious problem, so maybe it'll
    just do.
---
 src/test/java/org/torproject/onionoo/server/ResourceServletTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/torproject/onionoo/server/ResourceServletTest.java b/src/test/java/org/torproject/onionoo/server/ResourceServletTest.java
index 1588f8a..e41eecc 100644
--- a/src/test/java/org/torproject/onionoo/server/ResourceServletTest.java
+++ b/src/test/java/org/torproject/onionoo/server/ResourceServletTest.java
@@ -1104,7 +1104,7 @@ public class ResourceServletTest {
         null);
   }
 
-  @Test(timeout = 100)
+  @Test(timeout = 200)
   public void testCountryDeDe() {
     this.assertSummaryDocument(
         "/summary?country=de&country=de", 1, new String[] { "TorkaZ" }, 0,



More information about the tor-commits mailing list