From 882d67838ea6104fe99c5f5e856f150d22242040 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sat, 21 May 2022 22:23:16 -0400 Subject: [PATCH] Fix test failure reporting --- coins/monero/tests/send.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coins/monero/tests/send.rs b/coins/monero/tests/send.rs index 13550714..f3612a02 100644 --- a/coins/monero/tests/send.rs +++ b/coins/monero/tests/send.rs @@ -38,8 +38,9 @@ macro_rules! async_sequential { let guard = SEQUENTIAL.lock().unwrap(); let local = tokio::task::LocalSet::new(); local.run_until(async move { - if let Err(_) = tokio::task::spawn_local(async move { $body }).await { + if let Err(err) = tokio::task::spawn_local(async move { $body }).await { drop(guard); + Err(err).unwrap() } }).await; }