High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
test: isolate daemon status alias test from the live home directory PIN-013
Luigi Agosti2706319f4973
diff --git a/cmd/pinchtab/cmd_daemon_test.go b/cmd/pinchtab/cmd_daemon_test.goindex 5a1e9387..7732634e 100644--- a/cmd/pinchtab/cmd_daemon_test.go+++ b/cmd/pinchtab/cmd_daemon_test.go@@ -161,6 +161,11 @@ func TestDaemonActionsReachManager(t *testing.T) {}func TestDaemonStatusMatchesBareForm(t *testing.T) {+ // An empty HOME keeps both captures off the live service path and log dir:+ // the overview's log tail would otherwise read ~/.pinchtab/logs between the+ // two captures and differ by whatever the running daemon logged in between.+ t.Setenv("HOME", t.TempDir())+for _, jsonOut := range []bool{false, true} {bare := captureStdout(t, func() { dispatchDaemonCommand("", jsonOut) })status := captureStdout(t, func() { dispatchDaemonCommand("status", jsonOut) })