From 063b402d7c291e03aef83301f4863c7831514a2f Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Sat, 7 Nov 2026 18:19:31 +0000 Subject: [PATCH] test(cli): align worker upgrade checks with protocol 6 (#9033) The upgrade journey still expected protocol 5 after the worker moved to 6, stopping every main CLI run before adoption coverage. Keep obsolete versions 0 through 4 and exercise newer-worker rejection with version 7. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> --- .../cli/tests/46-daemon-terminal-worker-upgrade.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli/tests/46-daemon-terminal-worker-upgrade.test.ts b/packages/cli/tests/46-daemon-terminal-worker-upgrade.test.ts index 9090456406..cb272cf54a 100644 --- a/packages/cli/tests/46-daemon-terminal-worker-upgrade.test.ts +++ b/packages/cli/tests/46-daemon-terminal-worker-upgrade.test.ts @@ -49,7 +49,7 @@ const paseoHome = join(root, "home"); const cliHome = join(root, "os-home"); const workDir = join(root, "work"); for (const dir of [paseoHome, cliHome, workDir]) mkdirSync(dir, { recursive: true }); -const currentProtocolVersion = 5; +const currentProtocolVersion = 6; const zsh = ["/bin/zsh", "/usr/bin/zsh"].find((candidate) => existsSync(candidate)) ?? null; interface Installation { @@ -456,8 +456,8 @@ try { }); console.log(`Competing listener owns released port ${releasedPort}`); - // There is no supported previous wire at protocol 5. Future previous-version classification - // is covered by terminal-worker-protocol.test.ts; do not simulate an unreleased drain adapter. + // Protocols 0–4 have no draining adapter. Protocol 5 is now the supported previous wire; + // its classification is covered by terminal-worker-protocol.test.ts. for (const protocolVersion of [0, 1, 2, 3, 4]) { console.log(`Test 4: obsolete protocol ${protocolVersion} is closed before serving terminals`); const obsolete = await leaveWorkerWithProtocol(