diff --git a/junit-vintage-engine/src/main/java/org/junit/vintage/engine/descriptor/RunnerTestDescriptor.java b/junit-vintage-engine/src/main/java/org/junit/vintage/engine/descriptor/RunnerTestDescriptor.java index 08e29a2629c5..d23f5b488d90 100644 --- a/junit-vintage-engine/src/main/java/org/junit/vintage/engine/descriptor/RunnerTestDescriptor.java +++ b/junit-vintage-engine/src/main/java/org/junit/vintage/engine/descriptor/RunnerTestDescriptor.java @@ -171,8 +171,11 @@ public boolean isIgnored() { return ignored; } - public void setScheduler(RunnerScheduler scheduler) { - this.scheduler = scheduler; + public void setScheduler(org.junit.runners.model.RunnerScheduler scheduler) { + Runner runner = getRunnerToReport(); + if (runner instanceof ParentRunner) { + ((ParentRunner) runner).setScheduler(scheduler); + } } private static class ExcludeDescriptionFilter extends Filter {