aboutsummaryrefslogtreecommitdiff
path: root/tests/multi_client.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-14 04:42:50 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-14 04:42:50 +0300
commit17544c36ee397233e2f7b3319d86e3b517e3b5d0 (patch)
treefc9110143ddee7b5ccaee4a4008278453f344f3e /tests/multi_client.rs
parent3583a106bb98dcd5e4edb6e0d726a5d6cd57d6ca (diff)
fix: make macos ci socket tests deterministic
Diffstat (limited to 'tests/multi_client.rs')
-rw-r--r--tests/multi_client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/multi_client.rs b/tests/multi_client.rs
index cecac406..421a6756 100644
--- a/tests/multi_client.rs
+++ b/tests/multi_client.rs
@@ -94,12 +94,12 @@ fn wait_for_socket(path: &Path, timeout: Duration) {
fn wait_for_file(path: &Path, timeout: Duration) {
let deadline = Instant::now() + timeout;
while Instant::now() < deadline {
- if path.exists() {
+ if path.exists() && UnixStream::connect(path).is_ok() {
return;
}
thread::sleep(Duration::from_millis(25));
}
- panic!("file did not appear at {}", path.display());
+ panic!("socket did not accept connections at {}", path.display());
}
fn spawn_server(config_home: &Path, runtime_dir: &Path, api_socket_path: &Path) -> SpawnedHerdr {