From 01aebf512659ad08dbaa434f3bc86bf3a9fc5514 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Tue, 31 Mar 2020 11:46:26 -0700 Subject: [PATCH] Fix typo causing tests to always succeed. --- tests/async_tests.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/async_tests.rs b/tests/async_tests.rs index cc56a2e..66e1381 100644 --- a/tests/async_tests.rs +++ b/tests/async_tests.rs @@ -23,13 +23,10 @@ macro_rules! async_tests { }.await; 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 = $name.await; + let $name = $name.await.expect("Failed to spawn."); )* $( print!("test {} ... ", stringify!($name));