aboutsummaryrefslogtreecommitdiff
path: root/tests/client_mode.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/client_mode.rs
parent3583a106bb98dcd5e4edb6e0d726a5d6cd57d6ca (diff)
fix: make macos ci socket tests deterministic
Diffstat (limited to 'tests/client_mode.rs')
-rw-r--r--tests/client_mode.rs25
1 files changed, 12 insertions, 13 deletions
diff --git a/tests/client_mode.rs b/tests/client_mode.rs
index 64e28c58..99373e38 100644
--- a/tests/client_mode.rs
+++ b/tests/client_mode.rs
@@ -15,8 +15,7 @@ use serde::Deserialize;
use support::{
cleanup_test_base, client_handshake, encode_varint_u16, encode_varint_u32, frame_message,
read_server_message, register_runtime_dir, register_spawned_herdr_pid,
- unregister_spawned_herdr_pid, wait_for_file, wait_for_message_variant, wait_for_socket,
- wait_until,
+ unregister_spawned_herdr_pid, wait_for_message_variant, wait_for_socket, wait_until,
};
fn unique_test_dir() -> PathBuf {
@@ -269,7 +268,7 @@ fn client_connects_and_receives_frame() {
let spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
@@ -338,7 +337,7 @@ fn client_sees_headless_startup_config_diagnostic() {
child,
};
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
let (version, error) =
@@ -386,7 +385,7 @@ fn client_input_forwarded_to_pane() {
let spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
@@ -440,7 +439,7 @@ fn client_resize_sends_message() {
let spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
@@ -499,7 +498,7 @@ fn server_shutdown_sends_message_to_client() {
let mut spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
@@ -615,7 +614,7 @@ fn server_crash_after_attach_causes_lost_connection_error() {
let mut spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Attach a real thin client (client subcommand) through PTY so handshake and
// terminal setup paths are exercised.
@@ -731,7 +730,7 @@ fn client_receives_frame_after_pane_output() {
let spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
@@ -778,7 +777,7 @@ fn navigate_mode_keybind_dispatch_in_server() {
let spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
@@ -855,7 +854,7 @@ fn pane_spawn_cwd_fallback_in_server() {
let spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// The server should have started successfully even though there are
// no existing sessions (fresh state). The test verifies that the
@@ -896,7 +895,7 @@ fn graceful_shutdown_sends_server_shutdown_to_client() {
let mut spawned = spawn_server(&config_home, &runtime_dir, &api_socket, &client_socket);
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Connect and handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect to client socket");
@@ -995,7 +994,7 @@ fn client_receives_notify_on_agent_state_change() {
child,
};
wait_for_socket(&api_socket, Duration::from_secs(10));
- wait_for_file(&client_socket, Duration::from_secs(10));
+ wait_for_socket(&client_socket, Duration::from_secs(10));
// Connect as a client and perform handshake.
let mut stream = UnixStream::connect(&client_socket).expect("should connect");