Skip to content

Commit

Permalink
test: give windows file watcher more time (#3953)
Browse files Browse the repository at this point in the history
* test: give windows file watcher more time

* refactor: use constants for timeout
  • Loading branch information
sunng87 authored May 16, 2024
1 parent a1c51a5 commit fe34ebf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/servers/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,13 @@ mod tests {
.expect("failed to copy key to tmpdir");

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

std::thread::sleep(std::time::Duration::from_millis(timeout_millis));

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

0 comments on commit fe34ebf

Please sign in to comment.