summaryrefslogtreecommitdiff
path: root/app/src/test
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2022-12-12 13:10:05 +0100
committercyBerta <cyberta@riseup.net>2022-12-12 13:10:05 +0100
commit4cfa02e0a36759185decdbf920a9e1502fd32ccc (patch)
tree65f7e7c3c0b71d88314f1eeaac737ca6844878a6 /app/src/test
parent934a89e2218acb5e875020871e243e633dcf8464 (diff)
implement better snowflake connection setup handling in case either http domain fronting or amp cache is blocked
Diffstat (limited to 'app/src/test')
-rw-r--r--app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java b/app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java
index e14fa4c3..651aa345 100644
--- a/app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java
+++ b/app/src/test/java/se/leap/bitmaskclient/testutils/MockHelper.java
@@ -550,9 +550,9 @@ public class MockHelper {
});
when(TorStatusObservable.getSnowflakeStatus()).thenAnswer((Answer<TorStatusObservable.SnowflakeStatus>) invocation -> {
if (waitUntilSuccess.get()) {
- return TorStatusObservable.SnowflakeStatus.ON;
+ return TorStatusObservable.SnowflakeStatus.STARTED;
}
- return TorStatusObservable.SnowflakeStatus.OFF;
+ return TorStatusObservable.SnowflakeStatus.STOPPED;
});
if (exception != null) {