Skip to content

Commit 33df4d1

Browse files
committed
fix: add wait time for flakey test
1 parent 4770207 commit 33df4d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/fig_ipc/src/unix_socket.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ mod tests {
157157
.unwrap();
158158
}
159159

160+
// Wait some time for the socket to start listening.
161+
tokio::time::sleep(std::time::Duration::from_millis(5)).await;
162+
160163
let _stream = socket_connect(&socket_path).await.expect("Failed to validate socket");
161164

162165
socket_thread.abort();

0 commit comments

Comments
 (0)