diff --git a/crates/repx-test-utils/src/harness.rs b/crates/repx-test-utils/src/harness.rs index 91ed22d..1185a96 100644 --- a/crates/repx-test-utils/src/harness.rs +++ b/crates/repx-test-utils/src/harness.rs @@ -1,4 +1,4 @@ -use repx_core::fs_utils::path_to_string; +use repx_core::fs_utils::{force_remove_dir, path_to_string}; use serde_json::Value; use std::env; use std::fs; @@ -373,3 +373,9 @@ local_concurrency = 2 }) } } + +impl Drop for TestContext { + fn drop(&mut self) { + let _ = force_remove_dir(self._temp_dir.path()); + } +}