diff --git a/internal/core/unittest/test_hybrid_index.cpp b/internal/core/unittest/test_hybrid_index.cpp index a4a6661c20914..e4f19087ac519 100644 --- a/internal/core/unittest/test_hybrid_index.cpp +++ b/internal/core/unittest/test_hybrid_index.cpp @@ -210,6 +210,7 @@ class HybridIndexTestV1 : public testing::Test { } virtual ~HybridIndexTestV1() override { + this->index_.reset(); boost::filesystem::remove_all(chunk_manager_->GetRootPath()); }