Skip to content

Commit

Permalink
test: give windows file watcher more time
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed May 15, 2024
1 parent 66aa08d commit 42e93c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/servers/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,11 @@ mod tests {
.expect("failed to copy key to tmpdir");

// waiting for async load
#[cfg(not(target_os = "windows"))]
std::thread::sleep(std::time::Duration::from_millis(300));
#[cfg(target_os = "windows")]
std::thread::sleep(std::time::Duration::from_millis(2000));

assert!(server_config.get_version() > 1);
assert!(server_config.get_server_config().is_some());
}
Expand Down

0 comments on commit 42e93c2

Please sign in to comment.