From 84f04ac0819e80c829db25f558b66843424f8c48 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 11 Mar 2022 21:02:24 -0500 Subject: use tokio::test --- tests/behavior.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'tests/behavior.rs') diff --git a/tests/behavior.rs b/tests/behavior.rs index bb40e35..ee51cb4 100644 --- a/tests/behavior.rs +++ b/tests/behavior.rs @@ -29,8 +29,7 @@ fn test_multiple() { } #[cfg(feature = "async")] -#[tokio::main] -#[test] +#[tokio::test] async fn test_multiple_async() { use futures::stream::StreamExt as _; @@ -133,8 +132,7 @@ fn test_multiple_configured() { } #[cfg(feature = "async")] -#[tokio::main] -#[test] +#[tokio::test] async fn test_multiple_configured_async() { use futures::stream::StreamExt as _; use std::os::unix::io::FromRawFd as _; @@ -245,8 +243,7 @@ fn test_controlling_terminal() { } #[cfg(feature = "async")] -#[tokio::main] -#[test] +#[tokio::test] async fn test_controlling_terminal_async() { use futures::stream::StreamExt as _; @@ -287,8 +284,7 @@ fn test_session_leader() { } #[cfg(feature = "async")] -#[tokio::main] -#[test] +#[tokio::test] async fn test_session_leader_async() { use futures::stream::StreamExt as _; -- cgit v1.2.3-54-g00ecf