Skip to content

test is started 2 times using #[tokio::test] #51

@radumarias

Description

@radumarias

If I run this test it starts 2 times

#[tokio::test]
#[test_log::test]
async fn test1() {
    println!("test1");
}
❯ /usr/bin/cargo test --color=always --package rencfs --lib mycrate::test::test1 --no-fail-fast -- --exact -Z unstable-options --show-output
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s
     Running unittests src/lib.rs (target/debug/deps/rencfs-849516a3acb9b327)

running 2 tests
test encryptedfs::test::test1 ... ok
test encryptedfs::test::test1 ... ok

successes:

---- encryptedfs::test::test1 stdout ----
test1

---- encryptedfs::test::test1 stdout ----
test1


successes:
    encryptedfs::test::test1
    encryptedfs::test::test1

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 11 filtered out; finished in 0.00s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions