From d5e44be62b54658953fedcfb6d43a4ab3e1331dc Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 2 Nov 2022 17:30:31 +0100 Subject: [PATCH] [misc] ensure test suite reliability --- .../java/org/mariadb/jdbc/integration/UpdateResultSetTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/mariadb/jdbc/integration/UpdateResultSetTest.java b/src/test/java/org/mariadb/jdbc/integration/UpdateResultSetTest.java index 9738dfb02..b7e3b9cc8 100644 --- a/src/test/java/org/mariadb/jdbc/integration/UpdateResultSetTest.java +++ b/src/test/java/org/mariadb/jdbc/integration/UpdateResultSetTest.java @@ -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 = @@ -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