!4 TestPar.testMulti6()错误

Merge pull request !4 from invalley/parallelTestDemoBug
This commit is contained in:
tianyaleixiaowu 2020-12-18 17:34:29 +08:00 committed by Gitee
commit 960d0085cb

View File

@ -578,19 +578,19 @@ public class TestPar {
.param("3") .param("3")
.build(); .build();
//设置2不是必须1是必须的 //设置2不是必须
WorkerWrapper<String, String> workerWrapper2 = new WorkerWrapper.Builder<String, String>() WorkerWrapper<String, String> workerWrapper2 = new WorkerWrapper.Builder<String, String>()
.worker(w2) .worker(w2)
.callback(w2) .callback(w2)
.param("2") .param("2")
.next(workerWrapper3) .next(workerWrapper3, false)
.build(); .build();
// 设置1是必须的
WorkerWrapper<String, String> workerWrapper1 = new WorkerWrapper.Builder<String, String>() WorkerWrapper<String, String> workerWrapper1 = new WorkerWrapper.Builder<String, String>()
.worker(w1) .worker(w1)
.callback(w1) .callback(w1)
.param("1") .param("1")
.next(workerWrapper3) .next(workerWrapper3, true)
.build(); .build();
WorkerWrapper<String, String> workerWrapper0 = new WorkerWrapper.Builder<String, String>() WorkerWrapper<String, String> workerWrapper0 = new WorkerWrapper.Builder<String, String>()