Skip to content

Commit

Permalink
Use less ressource in test
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeEngineer committed Dec 15, 2023
1 parent d768c7e commit 023acfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/memfs/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{
path::Path,
process::{Command, Stdio},
time::Duration,
};

#[test]
Expand All @@ -13,7 +14,9 @@ fn winfsp_tests() {

let path = Path::new("Z:");

while !path.exists() {}
while !path.exists() {
std::thread::sleep(Duration::from_millis(100))
}

let exe =
std::env::var("WINFSP_TEST_EXE").expect("specify the path of winfsp_tests in TEST_EXE");
Expand Down

0 comments on commit 023acfd

Please sign in to comment.