summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2022-05-13 22:54:13 +0000
committercyberta <cyberta@riseup.net>2022-05-13 22:54:13 +0000
commit7660d31bb82b20e1471db574c8b647902493b1e6 (patch)
tree3e377b6fd31bb7732a2ef97ebd34742acf7cb159
parentcc264fd6fe74d1b26a7dee3676cb245409d1e5c9 (diff)
parentbd8ae6fee7937f10ec17e2ee7ec77388d5496579 (diff)
Merge branch 'snowflake_tests' into 'master'
reenable snowflake provider api unit tests See merge request leap/bitmask_android!183
-rw-r--r--app/src/test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/app/src/test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java b/app/src/test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java
index 31d6ae89..c3ee344f 100644
--- a/app/src/test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java
+++ b/app/src/test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java
@@ -689,10 +689,6 @@ public class ProviderApiManagerTest {
providerApiManager.handleIntent(providerApiCommand);
}
- /**
- * Disabled as long as we hide snowflake in the UI
- */
- /*
@Test
public void test_handleIntentSetupProvider_TorFallback_SecondTryHappyPath() throws IOException, CertificateEncodingException, NoSuchAlgorithmException, TimeoutException, InterruptedException {
Provider provider = getConfiguredProviderAPIv4();
@@ -710,12 +706,10 @@ public class ProviderApiManagerTest {
providerApiManager.handleIntent(providerApiCommand);
assertEquals(8118, TorStatusObservable.getProxyPort());
- }*/
+ }
+
- /**
- * Disabled as long as we hide snowflake in the UI
- */
- /* @Test
+ @Test
public void test_handleIntentSetupProvider_TorFallbackStartServiceException_SecondTryFailed() throws IOException, CertificateEncodingException, NoSuchAlgorithmException, TimeoutException, InterruptedException {
Provider provider = getConfiguredProviderAPIv4();
@@ -732,7 +726,7 @@ public class ProviderApiManagerTest {
providerApiManager.handleIntent(providerApiCommand);
assertEquals(-1, TorStatusObservable.getProxyPort());
- } */
+ }
@Test
public void test_handleIntentSetupProvider_TorFallbackTimeoutException_SecondTryFailed() throws IOException, CertificateEncodingException, NoSuchAlgorithmException, TimeoutException, InterruptedException {