Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 1f35dbd

Browse files
committed
Remove database after test
1 parent 5437e1a commit 1f35dbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/sql/insert_sql_test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,11 @@ TEST_F(InsertSQLTests, BadTypes) {
602602
EXPECT_THROW(
603603
TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
604604
peloton::Exception);
605+
606+
// free the database just created
607+
txn = txn_manager.BeginTransaction();
608+
catalog::Catalog::GetInstance()->DropDatabaseWithName(DEFAULT_DB_NAME, txn);
609+
txn_manager.CommitTransaction(txn);
605610
}
606611

607612
TEST_F(InsertSQLTests, NonExistentTable) {

0 commit comments

Comments
 (0)