Fix test failure reporting

This commit is contained in:
Luke Parker 2022-05-21 22:23:16 -04:00
parent e1fd462a50
commit 882d67838e
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6

View file

@ -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;
}