# HG changeset patch
# User Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
# Date 1667510970 -3600
# Node ID 32e7ac7b979ea66a9e4d8cd18fc9ece4ae637652
# Parent  238d6a3a6469d75d1103342b5e608d95245bb4da
Tests should always cleanup their created objects, so added cleanup() method.

diff --git a/tests/ConnectionTests.java b/tests/ConnectionTests.java
--- a/tests/ConnectionTests.java
+++ b/tests/ConnectionTests.java
@@ -77,6 +77,8 @@ public class ConnectionTests {
 		tester.withProp("autocommit", "false").checkAutoCommit(false);
 
 		tester.testTimeZone();
+
+		tester.cleanup();
 	}
 
 	Connection connect() throws SQLException {
@@ -159,6 +161,13 @@ public class ConnectionTests {
 		}
 	}
 
+	private void cleanup() throws SQLException {
+		try (Connection conn = connect(); Statement stmt = conn.createStatement()) {
+			stmt.execute("DROP TABLE IF EXISTS connectiontests");
+			stmt.execute("DROP TABLE IF EXISTS connectiontests_ts");
+		}
+	}
+
 	public class Failure extends Exception {
 		private static final long serialVersionUID = 1L;