fix test issue
This commit is contained in:
parent
223b4de2a4
commit
7e701394fc
|
|
@ -89,7 +89,7 @@ public class DubboInterceptorTest {
|
|||
public void call(TraceSegment traceSegment) {
|
||||
assertThat(traceSegment.getSpans().size(), is(1));
|
||||
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 {
|
|||
/**
|
||||
* This method assert that {@link SWBaseBean#getTraceContext()} if it's not null and context data
|
||||
* 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());
|
||||
assertThat(getTraceContext(), endsWith(expectSpanId + "|" + expectHost));
|
||||
assertThat(getTraceContext(), endsWith(expectHost));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue