diff --git a/presto-native-execution/presto_cpp/main/tests/QueryContextManagerTest.cpp b/presto-native-execution/presto_cpp/main/tests/QueryContextManagerTest.cpp index 865f1345caf96..b8e9f0edb67ae 100644 --- a/presto-native-execution/presto_cpp/main/tests/QueryContextManagerTest.cpp +++ b/presto-native-execution/presto_cpp/main/tests/QueryContextManagerTest.cpp @@ -21,6 +21,10 @@ namespace facebook::presto { class QueryContextManagerTest : public testing::Test { protected: + static void SetUpTestCase() { + velox::memory::MemoryManager::testingSetInstance({}); + } + void SetUp() override { driverExecutor_ = std::make_shared( 4, std::make_shared("Driver"));