From ca6ae112ff17551f3effcc0c2d4a3c5a9566dab6 Mon Sep 17 00:00:00 2001 From: 0rphon <59403052+0rphon@users.noreply.github.com> Date: Wed, 16 Mar 2022 13:15:58 -0700 Subject: [PATCH] fixed take_hook --- tests/test-framework/src/runner.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-framework/src/runner.rs b/tests/test-framework/src/runner.rs index cae20affc7..a1be3677af 100644 --- a/tests/test-framework/src/runner.rs +++ b/tests/test-framework/src/runner.rs @@ -70,6 +70,7 @@ fn take_hook( output: Result, Box>, panic_buf: Arc>>, ) -> Result, String> { + let _ = panic::take_hook(); output.map_err(|_| panic_buf.lock().unwrap().take().expect("failed to get panic message")) }