Fix typo causing tests to always succeed.

users/mingwei/surf
Mingwei Samuel 2020-03-31 11:46:26 -07:00
parent 72b37d770d
commit 01aebf5126
1 changed files with 1 additions and 4 deletions

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));