aboutsummaryrefslogtreecommitdiff
path: root/tests/cli_wrapper.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-04-29 23:24:36 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-04-29 23:24:36 +0300
commitc950670dca4983160085b140c125b8ca6d78dd09 (patch)
tree3c662cfe25bdfbe4489ceeb9e5373e746d717de7 /tests/cli_wrapper.rs
parenteec56a56a9f891de7a130536044a3ff875af0567 (diff)
fix: run integration commands without server
Diffstat (limited to 'tests/cli_wrapper.rs')
-rw-r--r--tests/cli_wrapper.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/cli_wrapper.rs b/tests/cli_wrapper.rs
index e0dbeebb..035264df 100644
--- a/tests/cli_wrapper.rs
+++ b/tests/cli_wrapper.rs
@@ -796,7 +796,7 @@ fn named_sessions_use_separate_servers_and_workspace_state() {
}
#[test]
-fn integration_commands_honor_socket_override_when_server_is_missing() {
+fn integration_commands_run_locally_when_server_is_missing() {
let base = unique_test_dir();
let home_dir = base.join("home");
let extensions_dir = home_dir.join(".pi/agent/extensions");
@@ -827,10 +827,10 @@ fn integration_commands_honor_socket_override_when_server_is_missing() {
.env("HOME", &home_dir)
.output()
.unwrap();
- assert_eq!(integration_install.status.code(), Some(1));
+ assert_eq!(integration_install.status.code(), Some(0));
assert!(
- !expected_extension.exists(),
- "integration install should not run local install logic when socket is missing"
+ expected_extension.exists(),
+ "integration install should write local files without a server"
);
let integration_uninstall = Command::new(env!("CARGO_BIN_EXE_herdr"))
@@ -839,10 +839,10 @@ fn integration_commands_honor_socket_override_when_server_is_missing() {
.env("HOME", &home_dir)
.output()
.unwrap();
- assert_eq!(integration_uninstall.status.code(), Some(1));
+ assert_eq!(integration_uninstall.status.code(), Some(0));
assert!(
!expected_extension.exists(),
- "integration uninstall should also be socket-backed when socket is missing"
+ "integration uninstall should remove local files without a server"
);
cleanup_test_base(&base);