Skip to content

Commit 00a567a

Browse files
committed
test(chores): call previous panic hook
1 parent 0edfed1 commit 00a567a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

node/testing/tests/common.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ macro_rules! scenario_test {
3131
<$scenario as documented::Documented>::DOCS
3232
)
3333
});
34+
let prev_panic_hook = std::panic::take_hook();
3435
std::panic::set_hook(Box::new(move |panic_info| {
3536
let _ = std::fs::File::options()
3637
.append(true)
@@ -44,6 +45,7 @@ macro_rules! scenario_test {
4445
eprintln!("\n::error file={file},line={line}::panic without a message");
4546
}
4647
}
48+
prev_panic_hook(panic_info);
4749
}));
4850
}
4951

0 commit comments

Comments
 (0)