diff --git a/testing-framework/core/src/scenario/runtime/runner.rs b/testing-framework/core/src/scenario/runtime/runner.rs index ac7bff9..652d740 100644 --- a/testing-framework/core/src/scenario/runtime/runner.rs +++ b/testing-framework/core/src/scenario/runtime/runner.rs @@ -27,6 +27,12 @@ pub struct Runner { cleanup_guard: Option>, } +impl Drop for Runner { + fn drop(&mut self) { + self.cleanup(); + } +} + impl Runner { /// Construct a runner from the run context and optional cleanup guard. #[must_use]