Skip to content

Commit

Permalink
Setup ProxySQL before each test (#1375)
Browse files Browse the repository at this point in the history
Related to #1374

This is an attempt to avoid connectivity failures.

Signed-off-by: Thomas Segismont <[email protected]>
  • Loading branch information
tsegismont authored Nov 9, 2023
1 parent da0d4d8 commit 3432c20
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

import io.vertx.ext.unit.junit.VertxUnitRunner;
import io.vertx.mysqlclient.junit.ProxySQLRule;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(VertxUnitRunner.class)
public class ProxySQLBatchInsertExceptionTest extends MySQLBatchInsertExceptionTestBase {

@ClassRule
public static ProxySQLRule proxySql = new ProxySQLRule(rule);
@Rule
public ProxySQLRule proxySql = new ProxySQLRule(rule);

@Override
protected MySQLConnectOptions createOptions() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
import io.vertx.ext.unit.junit.VertxUnitRunner;
import io.vertx.mysqlclient.MySQLConnectOptions;
import io.vertx.mysqlclient.junit.ProxySQLRule;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.runner.RunWith;

@RunWith(VertxUnitRunner.class)
public class ProxySQLPreparedBatchTest extends MySQLPreparedBatchTest {

@ClassRule
public static ProxySQLRule proxySql = new ProxySQLRule(rule);
@Rule
public ProxySQLRule proxySql = new ProxySQLRule(rule);

@Override
protected void initConnector() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import io.vertx.mysqlclient.junit.ProxySQLRule;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(VertxUnitRunner.class)
public class ProxySQLPreparedQueryTest extends MySQLPreparedQueryTest {

@ClassRule
public static ProxySQLRule proxySql = new ProxySQLRule(rule);
@Rule
public ProxySQLRule proxySql = new ProxySQLRule(rule);

@Override
protected void initConnector() {
Expand Down

0 comments on commit 3432c20

Please sign in to comment.