Skip to content

Commit

Permalink
Remove riseupvpn from CircumventionSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Oct 20, 2023
1 parent 69cc503 commit b1a3d19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,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 @@ -24,7 +24,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 +38,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

0 comments on commit b1a3d19

Please sign in to comment.