Skip to content

Commit

Permalink
Properly reset runtime parameter after test
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTF committed Nov 19, 2024
1 parent c9a5648 commit bc659c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/JoinTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,11 @@ TEST(JoinTest, joinLazyAndNonLazyOperationWithAndWithoutUndefValues) {
auto l = generateLocationTrace(loc);
auto qec = ad_utility::testing::getQec();
RuntimeParameters().set<"lazy-index-scan-max-size-materialization">(0);
absl::Cleanup cleanup{[]() {
// Reset back to original value to not influence other tests.
RuntimeParameters().set<"lazy-index-scan-max-size-materialization">(
1'000'000);
}};
auto leftTree =
ad_utility::makeExecutionTree<ValuesForTestingNoKnownEmptyResult>(
qec, std::move(leftTable), Vars{Variable{"?s"}}, false,
Expand Down

0 comments on commit bc659c6

Please sign in to comment.