Skip to content

Commit

Permalink
test: wait for file change in test multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed May 15, 2024
1 parent 7a740a7 commit 06d4d28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/servers/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,12 @@ mod tests {
.expect("failed to copy key to tmpdir");

// waiting for async load
std::thread::sleep(std::time::Duration::from_millis(300));
for _ in 0..3 {
std::thread::sleep(std::time::Duration::from_millis(300));
if server_config.get_version() > 1 {
break;
}
}
assert!(server_config.get_version() > 1);
assert!(server_config.get_server_config().is_some());
}
Expand Down

0 comments on commit 06d4d28

Please sign in to comment.