mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-14 20:10:37 +00:00
test: give windows file watcher more time (#3953)
* test: give windows file watcher more time * refactor: use constants for timeout
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user