Commit f1d2aea3 authored by 吴晟's avatar 吴晟
Browse files

Fix a test case failure issue.

parent 738d1564
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
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);