mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-25 12:06:02 +00:00
Fix test failure reporting
This commit is contained in:
parent
e1fd462a50
commit
882d67838e
1 changed files with 2 additions and 1 deletions
|
@ -38,8 +38,9 @@ macro_rules! async_sequential {
|
||||||
let guard = SEQUENTIAL.lock().unwrap();
|
let guard = SEQUENTIAL.lock().unwrap();
|
||||||
let local = tokio::task::LocalSet::new();
|
let local = tokio::task::LocalSet::new();
|
||||||
local.run_until(async move {
|
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);
|
drop(guard);
|
||||||
|
Err(err).unwrap()
|
||||||
}
|
}
|
||||||
}).await;
|
}).await;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue