Skip to content

Commit 40a2bc9

Browse files
committed
fix LCConcurrentRunner
1 parent 3a14509 commit 40a2bc9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

net.lecousin.core/src/test/java/net/lecousin/framework/core/test/runners/LCConcurrentRunner.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@ public static RunnerScheduler createRunnerScheduler() throws InitializationError
5757

5858
@Override
5959
public void schedule(Runnable childStatement) {
60-
jp.addToJoin(new Task.Unmanaged<Void, NoException>("Execute JUnit test", Task.PRIORITY_LOW) {
61-
@Override
62-
public Void run() {
63-
childStatement.run();
64-
return null;
65-
}
60+
jp.addToJoin(new Task.Cpu.FromRunnable("Execute JUnit test", Task.PRIORITY_LOW, childStatement) {
6661
@Override
6762
public long getMaxBlockingTimeInNanoBeforeToLog() {
6863
return Long.MAX_VALUE;

0 commit comments

Comments
 (0)