diff --git a/testing-framework/core/src/scenario/runtime/context.rs b/testing-framework/core/src/scenario/runtime/context.rs index 592387c..f7c967d 100644 --- a/testing-framework/core/src/scenario/runtime/context.rs +++ b/testing-framework/core/src/scenario/runtime/context.rs @@ -226,7 +226,7 @@ impl RuntimeAssembly { mut self, cleanup_guard: Option>, ) -> super::Runner { - let cleanup_guard = chain_cleanup_guards(self.cleanup_guard.take(), cleanup_guard); + let cleanup_guard = chain_cleanup_guards(cleanup_guard, self.cleanup_guard.take()); super::Runner::new(self.build_context(), cleanup_guard) } }