summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-07-31 19:42:41 +0200
committercyBerta <cyberta@riseup.net>2021-11-14 19:44:25 +0100
commit41fbc2f409d5438fcc3ce51d5679888d0c8df7a3 (patch)
tree12c6a4c6908e2ff3da5fe0895833b77e883a9f58 /app
parenta2067cd5b56387405cb653de8940e7afc448449d (diff)
disable GatewaysManager tests checking average gateway load, because currently we fake the values
Diffstat (limited to 'app')
-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 {