Skip to content

Commit 828dd50

Browse files
schedutronapavlo
authored andcommitted
Remove exception rethrow
1 parent 09de92a commit 828dd50

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/sql/insert_sql_test.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,8 @@ TEST_F(InsertSQLTests, NonExistentTable) {
578578
// Insert an int into a non-existent table.
579579
std::string query("INSERT INTO NonExistentTable VALUES(3);");
580580
txn = txn_manager.BeginTransaction();
581-
EXPECT_THROW({
582-
try {
583-
TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn);
584-
} catch (peloton::CatalogException &ex) {
585-
EXPECT_STREQ("Table nonexistenttable is not found", ex.what());
586-
throw peloton::CatalogException(ex.what());
587-
}
588-
}, peloton::CatalogException);
581+
EXPECT_THROW(TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
582+
peloton::CatalogException);
589583
}
590584

591585
} // namespace test

0 commit comments

Comments
 (0)