From d1571c07071b1a9da3449f2a0837403a7b9b69f8 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Wed, 28 Jul 2021 11:04:25 +0200 Subject: [PATCH] Move teardown next to setup method --- .../plugin/iceberg/TestIcebergSystemTables.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergSystemTables.java b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergSystemTables.java index 5bbde8791a1d7..e247a34860b58 100644 --- a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergSystemTables.java +++ b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergSystemTables.java @@ -90,6 +90,14 @@ public void setUp() assertQuery("SELECT count(*) FROM test_schema.test_table_multilevel_partitions", "VALUES 3"); } + @AfterClass(alwaysRun = true) + public void tearDown() + { + assertUpdate("DROP TABLE IF EXISTS test_schema.test_table"); + assertUpdate("DROP TABLE IF EXISTS test_schema.test_table_multilevel_partitions"); + assertUpdate("DROP SCHEMA IF EXISTS test_schema"); + } + @Test public void testPartitionTable() { @@ -183,12 +191,4 @@ public void testFilesTable() "('equality_ids', 'array(integer)', '', '')"); assertQuerySucceeds("SELECT * FROM test_schema.\"test_table$files\""); } - - @AfterClass(alwaysRun = true) - public void tearDown() - { - assertUpdate("DROP TABLE IF EXISTS test_schema.test_table"); - assertUpdate("DROP TABLE IF EXISTS test_schema.test_table_multilevel_partitions"); - assertUpdate("DROP SCHEMA IF EXISTS test_schema"); - } }