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

Commit b453f71

Browse files
authored
Merge branch 'master' into ssl_test
2 parents d77f9d3 + 9cf8b16 commit b453f71

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

test/optimizer/optimizer_rule_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ TEST_F(OptimizerRuleTests, SimpleAssociativeRuleTest) {
162162
auto child_join_op = output_join->Children()[1]->Op().As<LogicalInnerJoin>();
163163
EXPECT_EQ(2, parent_join_op->join_predicates.size());
164164
EXPECT_EQ(0, child_join_op->join_predicates.size());
165+
delete root_context;
165166
}
166167

167168
TEST_F(OptimizerRuleTests, SimpleAssociativeRuleTest2) {
@@ -256,6 +257,7 @@ TEST_F(OptimizerRuleTests, SimpleAssociativeRuleTest2) {
256257
auto child_join_op = output_join->Children()[1]->Op().As<LogicalInnerJoin>();
257258
EXPECT_EQ(1, parent_join_op->join_predicates.size());
258259
EXPECT_EQ(1, child_join_op->join_predicates.size());
260+
delete root_context;
259261
}
260262

261263
} // namespace test

test/planner/plan_util_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ TEST_F(PlanUtilTests, GetAffectedIndexesTest) {
163163

164164
// no indexes are affected
165165
EXPECT_EQ(0, static_cast<int>(affected_indexes.size()));
166+
txn_manager.CommitTransaction(txn);
166167
}
167168

168169
} // namespace test

test/sql/insert_sql_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ TEST_F(InsertSQLTests, BadTypes) {
598598
query = "INSERT INTO foo(id5) VALUES('h');";
599599
EXPECT_THROW(TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
600600
peloton::Exception);
601+
txn_manager.CommitTransaction(txn);
601602

602603
// free the database just created
603604
txn = txn_manager.BeginTransaction();
@@ -618,6 +619,7 @@ TEST_F(InsertSQLTests, NonExistentTable) {
618619
txn = txn_manager.BeginTransaction();
619620
EXPECT_THROW(TestingSQLUtil::GeneratePlanWithOptimizer(optimizer, query, txn),
620621
peloton::CatalogException);
622+
txn_manager.CommitTransaction(txn);
621623
}
622624

623625
} // namespace test

0 commit comments

Comments
 (0)