Skip to content

Commit

Permalink
Use closeAfterClass instead of destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiangling authored and ebyhr committed Mar 29, 2022
1 parent 7f954b5 commit aece856
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import io.trino.testing.sql.SqlExecutor;
import io.trino.testing.sql.TestTable;
import io.trino.testing.sql.TrinoSqlExecutor;
import org.testng.annotations.AfterClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

Expand Down Expand Up @@ -88,16 +87,10 @@ public class TestSingleStoreTypeMapping
protected QueryRunner createQueryRunner()
throws Exception
{
singleStoreServer = new TestingSingleStoreServer();
singleStoreServer = closeAfterClass(new TestingSingleStoreServer());
return createSingleStoreQueryRunner(singleStoreServer, ImmutableMap.of(), ImmutableMap.of(), ImmutableList.of());
}

@AfterClass(alwaysRun = true)
public final void destroy()
{
singleStoreServer.close();
}

@Test
public void testBit()
{
Expand Down

0 comments on commit aece856

Please sign in to comment.