aboutsummaryrefslogtreecommitdiffstats
path: root/tests/basic.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/basic.rs
parentb2733e64d900ac237211360848326f3c4caa23f5 (diff)
downloadpty-process-84f04ac0819e80c829db25f558b66843424f8c48.tar.gz
pty-process-84f04ac0819e80c829db25f558b66843424f8c48.zip
use tokio::test
Diffstat (limited to 'tests/basic.rs')
-rw-r--r--tests/basic.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/basic.rs b/tests/basic.rs
index fd74463..f6faa2e 100644
--- a/tests/basic.rs
+++ b/tests/basic.rs
@@ -22,8 +22,7 @@ fn test_cat_blocking() {
}
#[cfg(feature = "async")]
-#[tokio::main]
-#[test]
+#[tokio::test]
async fn test_cat_async() {
use futures::stream::StreamExt as _;
use tokio::io::AsyncWriteExt as _;
@@ -47,8 +46,7 @@ async fn test_cat_async() {
}
#[cfg(feature = "async")]
-#[tokio::main]
-#[test]
+#[tokio::test]
async fn test_yes_async() {
use tokio::io::AsyncReadExt as _;