From 896a1ae341a1bfb9b03861918470483607ea0f51 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Fri, 11 Oct 2019 19:12:05 +0200 Subject: exclude failing test for insecure build flavor --- .../test/java/se/leap/bitmaskclient/eip/ProviderApiManagerTest.java | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3