From a02c3a69bb5cea3832ef54e7cbe29425cc392eb3 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 22 Jul 2026 22:41:01 +0300 Subject: refactor: centralize new terminal cwd selection replaces contributions from Pitchfork-and-Torch --- tests/api_ping.rs | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'tests/api_ping.rs') diff --git a/tests/api_ping.rs b/tests/api_ping.rs index a31a5866..f63b93dd 100644 --- a/tests/api_ping.rs +++ b/tests/api_ping.rs @@ -740,10 +740,6 @@ fn pane_info_reports_foreground_cwd_without_changing_pane_cwd() { .as_str() .unwrap() .to_string(); - let workspace_id = created["result"]["workspace"]["workspace_id"] - .as_str() - .unwrap() - .to_string(); let command = format!( "/bin/sh -c 'cd {} && printf %s $$ > {} && touch {} && sleep 30; :'", foreground.display(), @@ -872,41 +868,6 @@ fn pane_info_reports_foreground_cwd_without_changing_pane_cwd() { foreground.display().to_string() ); - let tab = send_request( - &socket_path, - &serde_json::json!({ - "id": "fg_tab", - "method": "tab.create", - "params": { - "workspace_id": workspace_id, - "focus": false, - }, - }) - .to_string(), - ); - assert_eq!( - tab["result"]["root_pane"]["cwd"], - foreground.display().to_string() - ); - - let explicit_tab = send_request( - &socket_path, - &serde_json::json!({ - "id": "fg_explicit_tab", - "method": "tab.create", - "params": { - "workspace_id": workspace_id, - "cwd": base, - "focus": false, - }, - }) - .to_string(), - ); - assert_eq!( - explicit_tab["result"]["root_pane"]["cwd"], - base.display().to_string() - ); - cleanup_spawned_herdr(child, base); } -- cgit v1.2.3