summaryrefslogtreecommitdiffstats
path: root/tokio/tests/macros_test.rs
blob: 8e68b8a4417cfe6ac5883584c99cbebc82c924e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use tokio::test;

#[test]
async fn test_macro_can_be_used_via_use() {
    tokio::spawn(async {
        assert_eq!(1 + 1, 2);
    })
    .await
    .unwrap();
}

#[tokio::test]
async fn test_macro_is_resilient_to_shadowing() {
    tokio::spawn(async {
        assert_eq!(1 + 1, 2);
    })
    .await
    .unwrap();
}