Commit 7e701394 authored by ascrutae's avatar ascrutae
Browse files

fix test issue

parent 223b4de2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
            }
        });
    }
+2 −4
Original line number Diff line number Diff line
@@ -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));
    }
}