From 733cac3bde72d1ee5aef75c57abd43062360c914 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 31 Jul 2021 19:42:41 +0200 Subject: disable GatewaysManager tests checking average gateway load, because currently we fake the values --- .../java/se/leap/bitmaskclient/eip/GatewaysManagerTest.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'app/src/test/java/se/leap') diff --git a/app/src/test/java/se/leap/bitmaskclient/eip/GatewaysManagerTest.java b/app/src/test/java/se/leap/bitmaskclient/eip/GatewaysManagerTest.java index 08591b6d..27bfdb34 100644 --- a/app/src/test/java/se/leap/bitmaskclient/eip/GatewaysManagerTest.java +++ b/app/src/test/java/se/leap/bitmaskclient/eip/GatewaysManagerTest.java @@ -345,7 +345,10 @@ public class GatewaysManagerTest { assertNull(gatewaysManager.select(0, "Stockholm")); } - @Test + /* + This test is disabled since we fake load values in gateway manager with randomized numbers. + */ + /* @Test public void testGetLocations_openvpn() { Provider provider = getProvider(null, null, null, null, null, null, "v4/riseup_eipservice_for_geoip_v4.json", "v4/riseup_geoip_v4.json"); @@ -364,9 +367,12 @@ public class GatewaysManagerTest { assertEquals(averageLoad, location.averageLoad); } } - } + } */ - @Test + /* + This test is disabled since we fake load values in gateway manager with randomized numbers. + */ + /*@Test public void testGetLocations_obfs4() { Provider provider = getProvider(null, null, null, null, null, null, "v4/riseup_eipservice_for_geoip_v4.json", "v4/riseup_geoip_v4.json"); @@ -390,6 +396,7 @@ public class GatewaysManagerTest { } } + */ private String getJsonStringFor(String filename) throws IOException { -- cgit v1.2.3