Skip to content

Commit

Permalink
[misc] ensure test suite reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Nov 2, 2022
1 parent 63f0264 commit d5e44be
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ public void testMeta() throws Exception {
+ "`t1` VARCHAR(50) NOT NULL,"
+ "`t2` VARCHAR(50) NULL default 'default-value',"
+ "PRIMARY KEY (`id`))");
stmt.execute("START TRANSACTION"); // if MAXSCALE ensure using WRITER
stmt.executeQuery("INSERT INTO UpdateWithoutPrimary(t1,t2) values ('1-1','1-2')");

try (PreparedStatement preparedStatement =
Expand Down Expand Up @@ -282,6 +283,7 @@ public void testMeta() throws Exception {
assertEquals("1-1", rs.getString(2));
assertEquals("1-2", rs.getString(3));
assertFalse(rs.next());
sharedConn.rollback();
}

@Test
Expand Down

0 comments on commit d5e44be

Please sign in to comment.