diff options
author | cyBerta <cyberta@riseup.net> | 2019-10-11 19:12:05 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-10-11 19:12:05 +0200 |
commit | 896a1ae341a1bfb9b03861918470483607ea0f51 (patch) | |
tree | 7118ba15df5fb1e2b90907860360116a89c00ecc /app/src | |
parent | 84f9b697d1417c6308c3a4be9d1c2d01d26a88bf (diff) |
exclude failing test for insecure build flavor
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java | 5 |
1 files changed, 5 insertions, 0 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 21781abb..dde0601d 100644 --- a/app/src/test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java +++ b/app/src/test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java @@ -38,6 +38,7 @@ import java.io.IOException; import java.security.NoSuchAlgorithmException; import java.security.cert.CertificateEncodingException; +import se.leap.bitmaskclient.BuildConfig; import se.leap.bitmaskclient.Provider; import se.leap.bitmaskclient.ProviderAPI; import se.leap.bitmaskclient.ProviderApiConnector; @@ -407,6 +408,10 @@ public class ProviderApiManagerTest { @Test public void test_handleIntentSetupProvider_failingEipServiceFetch_failedConfiguration() throws IOException, NoSuchAlgorithmException, CertificateEncodingException { + if ("insecure".equals(BuildConfig.FLAVOR_implementation )) { + return; + } + Provider provider = new Provider("https://riseup.net"); mockFingerprintForCertificate("a5244308a1374709a9afce95e3ae47c1b44bc2398c0a70ccbf8b3a8a97f29494"); |