Fix typo causing tests to always succeed.

This commit is contained in:
Mingwei Samuel 2020-03-31 11:46:26 -07:00
parent 72b37d770d
commit 01aebf5126

View file

@ -23,13 +23,10 @@ macro_rules! async_tests {
}.await; }.await;
result result
}; };
// let $name = tokio_executor::Executor::spawn_with_handle(
// &mut tokio_executor::DefaultExecutor::current(), $name)
// .expect("Failed to spawn.");
let $name = tokio::spawn($name); let $name = tokio::spawn($name);
)* )*
$( $(
let $name = $name.await; let $name = $name.await.expect("Failed to spawn.");
)* )*
$( $(
print!("test {} ... ", stringify!($name)); print!("test {} ... ", stringify!($name));