test(server): Claude sign-in message test passes on Windows hosts (#18183)

Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
AdEx-Partners-DEandClaude Opus 5.5 authored and GitHub committed 2026-10-12 01:07:38 +00:00
1 parent 9b9792ead5
commit 6a99eb3f08
1 file changed
+4 -2
@@ -3150,7 +3150,8 @@ describe("ClaudeAdapterV2 background wake turns", () => {
it.effect("names an expired Claude login instead of the terminal API error", () =>
Effect.gen(function* () {
const configDir = "/synthetic/Claude config";
const cwd = "/synthetic/project";
// The adapter resolves the cwd on the host, which adds a drive letter on Windows.
const cwd = NodePath.resolve("/synthetic/project");
const harness = yield* makeWakeHarnessWithOptions({
environment: { CLAUDE_CONFIG_DIR: configDir },
});
@@ -3187,7 +3188,8 @@ describe("ClaudeAdapterV2 background wake turns", () => {
if (terminal.status !== "failed") return;
assert.include(terminal.failure.message, "run `claude auth login`");
assert.include(terminal.failure.message, configDir);
assert.include(terminal.failure.message, cwd);
// The message quotes its paths, which escapes Windows separators.
assert.include(terminal.failure.message, JSON.stringify(cwd));
assert.notInclude(terminal.failure.message, "repeated API errors");
}).pipe(
Effect.provide(