summaryrefslogtreecommitdiff
path: root/app/src/test/java/se
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-07-31 19:42:41 +0200
committercyBerta <cyberta@riseup.net>2021-11-15 16:13:41 +0100
commit733cac3bde72d1ee5aef75c57abd43062360c914 (patch)
tree6a18a22a072d90f1f6a6afb4bbb56c6914a54ff5 /app/src/test/java/se
parentedb4b900ab1d1113492e98c28f12133c97721818 (diff)
disable GatewaysManager tests checking average gateway load, because currently we fake the values
Diffstat (limited to 'app/src/test/java/se')
-rw-r--r--app/src/test/java/se/leap/bitmaskclient/eip/GatewaysManagerTest.java13
1 files changed, 10 insertions, 3 deletions
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 {