aboutsummaryrefslogtreecommitdiffstats
path: root/tests/behavior.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-03-11 21:02:24 -0500
committerJesse Luehrs <doy@tozt.net>2022-03-11 21:02:24 -0500
commit84f04ac0819e80c829db25f558b66843424f8c48 (patch)
tree87aa794ab670893dd618e68144c598e960fd7e5a /tests/behavior.rs
parentb2733e64d900ac237211360848326f3c4caa23f5 (diff)
downloadpty-process-84f04ac0819e80c829db25f558b66843424f8c48.tar.gz
pty-process-84f04ac0819e80c829db25f558b66843424f8c48.zip
use tokio::test
Diffstat (limited to 'tests/behavior.rs')
-rw-r--r--tests/behavior.rs12
1 files changed, 4 insertions, 8 deletions
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 _;