From 102ab2ac89136b02fe745abfa00af50937a0ea31 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Wed, 2 Mar 2022 15:41:55 +0900 Subject: [PATCH] Drop table after verifying the behavior in testRenameTable --- .../src/main/java/io/trino/testing/BaseConnectorTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java b/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java index c35eb3ab1ebc..684cb8980168 100644 --- a/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java +++ b/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java @@ -1785,6 +1785,7 @@ public void testRenameTable() String renamedTable = "test_rename_new_" + randomTableSuffix(); if (!hasBehavior(SUPPORTS_RENAME_TABLE)) { assertQueryFails("ALTER TABLE " + tableName + " RENAME TO " + renamedTable, "This connector does not support renaming tables"); + assertUpdate("DROP TABLE " + tableName); return; }