提交 7e701394 编写于 作者: A ascrutae

fix test issue

上级 223b4de2
...@@ -89,7 +89,7 @@ public class DubboInterceptorTest { ...@@ -89,7 +89,7 @@ public class DubboInterceptorTest {
public void call(TraceSegment traceSegment) { public void call(TraceSegment traceSegment) {
assertThat(traceSegment.getSpans().size(), is(1)); assertThat(traceSegment.getSpans().size(), is(1));
assertConsumerSpan(traceSegment.getSpans().get(0)); assertConsumerSpan(traceSegment.getSpans().get(0));
testParam.assertSelf("0", "127.0.0.1"); testParam.assertSelf("127.0.0.1");
} }
}); });
} }
......
...@@ -14,11 +14,9 @@ public class RequestParamForTestBelow283 extends SWBaseBean { ...@@ -14,11 +14,9 @@ public class RequestParamForTestBelow283 extends SWBaseBean {
/** /**
* This method assert that {@link SWBaseBean#getTraceContext()} if it's not null and context data * This method assert that {@link SWBaseBean#getTraceContext()} if it's not null and context data
* will end with the expect span id. * will end with the expect span id.
*
* @param expectSpanId expect span id
*/ */
public void assertSelf(String expectSpanId, String expectHost) { public void assertSelf(String expectHost) {
assertNotNull(getTraceContext()); assertNotNull(getTraceContext());
assertThat(getTraceContext(), endsWith(expectSpanId + "|" + expectHost)); assertThat(getTraceContext(), endsWith(expectHost));
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册