Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ooni/probe-android into issues/25…
Browse files Browse the repository at this point in the history
…24-release-3.8.4
  • Loading branch information
aanorbel committed Oct 20, 2023
2 parents 142e367 + a9d8054 commit aedbc06
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.openobservatory.ooniprobe.common.PreferenceManager;
import org.openobservatory.ooniprobe.test.test.AbstractTest;
import org.openobservatory.ooniprobe.test.test.Psiphon;
import org.openobservatory.ooniprobe.test.test.RiseupVPN;
import org.openobservatory.ooniprobe.test.test.Tor;

import java.util.ArrayList;
Expand Down Expand Up @@ -44,8 +43,6 @@ public static CircumventionSuite initForAutoRun() {
list.add(new Psiphon());
if (pm == null || pm.isTestTor())
list.add(new Tor());
if (pm == null || pm.isTestRiseupVPN())
list.add(new RiseupVPN());
super.setTestList(Lists.transform(list, test -> {
if (getAutoRun()) test.setOrigin(AbstractTest.AUTORUN);
return test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import org.openobservatory.ooniprobe.common.PreferenceManager;
import org.openobservatory.ooniprobe.test.test.AbstractTest;
import org.openobservatory.ooniprobe.test.test.Psiphon;
import org.openobservatory.ooniprobe.test.test.RiseupVPN;
import org.openobservatory.ooniprobe.test.test.Tor;

import java.util.Arrays;
Expand All @@ -24,7 +23,6 @@ public class CircumventionSuiteTest {
public void getTestList_empty() {
when(pm.isTestPsiphon()).thenReturn(false);
when(pm.isTestTor()).thenReturn(false);
when(pm.isTestRiseupVPN()).thenReturn(false);

AbstractTest[] tests = suite.getTestList(pm);

Expand All @@ -39,10 +37,9 @@ public void getTestList_full() {

List<AbstractTest> tests = Arrays.asList(suite.getTestList(pm));

assertEquals(3, tests.size());
assertEquals(2, tests.size());
assertTrue(findTestClass(tests, Psiphon.class));
assertTrue(findTestClass(tests, Tor.class));
assertTrue(findTestClass(tests, RiseupVPN.class));
}

private boolean findTestClass(List<AbstractTest> tests, Class<? extends AbstractTest> klass) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ markwon = "2.0.1"
shapeofview = "1.3.2"
targetSdk = "33"
minSdk = "21"
oonimkall = "2023.10.12-183140"
oonimkall = "2023.10.20-093834"

junit = "4.13.2"
dbflow = "4.2.4"
Expand Down

0 comments on commit aedbc06

Please sign in to comment.