Skip to content

Commit

Permalink
Use less ressource in winfsp-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeEngineer committed Dec 15, 2023
1 parent c3df5bf commit d3e0b05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libparsec/crates/platform_mountpoint/tests/winfsp_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

#![cfg(target_os = "windows")]

use std::{path::Path, process::Command, time::Duration};

use libparsec_platform_mountpoint::{FileSystemMounted, MemFS};
use std::{path::Path, process::Command};

#[test]
fn winfsp_tests() {
Expand All @@ -16,7 +17,9 @@ fn winfsp_tests() {
fs.stop();
});

while !Path::new("Z:").exists() {}
while !Path::new("Z:").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 d3e0b05

Please sign in to comment.