diff --git a/src/test/java/parallel/TestPar.java b/src/test/java/parallel/TestPar.java index fdf7e2b..e13ccc9 100755 --- a/src/test/java/parallel/TestPar.java +++ b/src/test/java/parallel/TestPar.java @@ -578,19 +578,19 @@ public class TestPar { .param("3") .build(); - //设置2不是必须,1是必须的 + //设置2不是必须 WorkerWrapper workerWrapper2 = new WorkerWrapper.Builder() .worker(w2) .callback(w2) .param("2") - .next(workerWrapper3) + .next(workerWrapper3, false) .build(); - + // 设置1是必须的 WorkerWrapper workerWrapper1 = new WorkerWrapper.Builder() .worker(w1) .callback(w1) .param("1") - .next(workerWrapper3) + .next(workerWrapper3, true) .build(); WorkerWrapper workerWrapper0 = new WorkerWrapper.Builder()