diff --git a/test/fuzz/fuzz_runner.cc b/test/fuzz/fuzz_runner.cc index 618116a2f382d..5a657476e1684 100644 --- a/test/fuzz/fuzz_runner.cc +++ b/test/fuzz/fuzz_runner.cc @@ -31,6 +31,8 @@ void Runner::setupEnvironment(int argc, char** argv, spdlog::level::level_enum d // state. ProcessWide process_wide; TestEnvironment::initializeOptions(argc, argv); + static auto* test_thread = new Envoy::Thread::TestThread; + UNREFERENCED_PARAMETER(test_thread); const auto environment_log_level = TestEnvironment::getOptions().logLevel(); // We only override the default log level if it looks like we're debugging; diff --git a/test/fuzz/main.cc b/test/fuzz/main.cc index ee1a033052509..47784b8b71ba1 100644 --- a/test/fuzz/main.cc +++ b/test/fuzz/main.cc @@ -56,7 +56,6 @@ INSTANTIATE_TEST_SUITE_P(CorpusExamples, FuzzerCorpusTest, testing::ValuesIn(tes int main(int argc, char** argv) { Envoy::TestEnvironment::initializeTestMain(argv[0]); - Envoy::Thread::TestThread test_thread; // Expected usage: [other gtest flags] RELEASE_ASSERT(argc >= 2, "");