Fix a test case failure issue.
This commit is contained in:
parent
738d156495
commit
f1d2aea35e
|
|
@ -1,5 +1,6 @@
|
|||
package com.a.eye.skywalking.plugin.jdbc;
|
||||
|
||||
import com.a.eye.skywalking.api.boot.ServiceStarter;
|
||||
import com.a.eye.skywalking.api.context.TracerContext;
|
||||
import com.a.eye.skywalking.sniffer.mock.context.MockTracerContextListener;
|
||||
import com.a.eye.skywalking.sniffer.mock.context.SegmentAssert;
|
||||
|
|
@ -46,6 +47,7 @@ public class SWConnectionTest extends AbstractStatementTest {
|
|||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
ServiceStarter.INSTANCE.boot();
|
||||
mockTracerContextListener = new MockTracerContextListener();
|
||||
swConnection = new SWConnection("jdbc:mysql://127.0.0.1:3306/test", new Properties(), jdbcConnection);
|
||||
multiHostConnection = new SWConnection("jdbc:mysql://127.0.0.1:3306,127.0.0.1:3309/test", new Properties(), jdbcConnection);
|
||||
|
|
@ -358,4 +360,4 @@ public class SWConnectionTest extends AbstractStatementTest {
|
|||
TracerContext.ListenerManager.remove(mockTracerContextListener);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue