Skip to content

Commit

Permalink
Upgraded max parallel threads to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Mar 4, 2024
1 parent ef47bb5 commit 2fcf94e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.ably.lib.test.realtime;

import com.googlecode.junittoolbox.ParallelRunner;
import com.googlecode.junittoolbox.ParallelSuite;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.JUnitCore;
Expand All @@ -11,7 +11,7 @@

import io.ably.lib.test.common.Setup;

@RunWith(ParallelRunner.class)
@RunWith(ParallelSuite.class)
@SuiteClasses({
ConnectionManagerTest.class,
RealtimeHttpHeaderTest.class,
Expand Down Expand Up @@ -44,6 +44,7 @@ public static void tearDownAfterClass() throws Exception {
}

public static void main(String[] args) {
System.setProperty("maxParallelTestThreads", "4");
Result result = JUnitCore.runClasses(RealtimeSuite.class);
for(Failure failure : result.getFailures()) {
System.out.println("Failed :: "+ failure.toString());
Expand Down

0 comments on commit 2fcf94e

Please sign in to comment.