提交 e77abe23 编写于 作者: P pengys5

no message

上级 6233b69e
......@@ -40,7 +40,7 @@ public class GlobalTraceSearchTestCase {
String segment_Data = JsonFileReader.INSTANCE.read(this.getClass().getResource("/").getPath() + "/json/globaltrace/persistence/globaltrace_segment.json");
mockSegment(getResponseFromEs, SegmentIndex.INDEX, SegmentIndex.TYPE_RECORD, segment_1, segment_Data);
GlobalTraceSearchWithGlobalId search = new GlobalTraceSearchWithGlobalId(null, null, null);
GlobalTraceSearchWithGlobalId search = new GlobalTraceSearchWithGlobalId(GlobalTraceSearchWithGlobalId.WorkerRole.INSTANCE, null, null);
JsonObject responseObj = new JsonObject();
// search.allocateJob(globalTraceId, responseObj);
......
......@@ -15,11 +15,11 @@ public class TestAbstractGetProvider extends AbstractGetProvider {
@Override
public Role role() {
return null;
return TestAbstractGet.WorkerRole.INSTANCE;
}
@Override
public AbstractWorker workerInstance(ClusterWorkerContext clusterContext) {
return new TestAbstractGet(null, null, null);
return new TestAbstractGet(role(), null, null);
}
}
......@@ -25,6 +25,6 @@ public class TestAbstractPostProvider extends AbstractPostProvider {
@Override
public AbstractWorker workerInstance(ClusterWorkerContext clusterContext) {
return new TestAbstractPost(null, null, null);
return new TestAbstractPost(TestAbstractPost.WorkerRole.INSTANCE, null, null);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册