diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-22 22:41:01 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-22 22:41:01 +0300 |
| commit | a02c3a69bb5cea3832ef54e7cbe29425cc392eb3 (patch) | |
| tree | 7dd9a6183f8204603680c5fe0ab03cb5b19dcfa4 /tests/api_ping.rs | |
| parent | 9524d0a3bc9912b2094a1bda38c845a10bb4ba7b (diff) | |
refactor: centralize new terminal cwd selection
replaces contributions from Pitchfork-and-Torch
Diffstat (limited to 'tests/api_ping.rs')
| -rw-r--r-- | tests/api_ping.rs | 39 |
1 files changed, 0 insertions, 39 deletions
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); } |
