Skip to content

Commit

Permalink
Move teardown next to setup method
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Aug 3, 2021
1 parent f18a0a5 commit d1571c0
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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");
}
}

0 comments on commit d1571c0

Please sign in to comment.