Skip to content

Commit d2e6857

Browse files
test(server): CodexDriver auth.json watch test no longer needs codex on PATH
On a host without codex on PATH the driver asks the mocked CodexInstallation to acquire a binary. The mock has no acquire, so the probe dies before it spawns and the test waits for a probe that never comes. CI runners have no codex, so the test timed out on every run, main included. Give the test an explicit binary path so the driver skips the PATH lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1013442 commit d2e6857

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/server/src/provider/Drivers/CodexDriver.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,12 @@ it.layer(layerTest)("CodexDriver", (it) => {
899899
displayName: "Codex auth watch",
900900
enabled: true,
901901
environment: [],
902-
config: { ...CodexDriver.defaultConfig(), homePath: codexHome },
902+
// An explicit binary skips the PATH lookup, so hosts without Codex installed probe the same way.
903+
config: {
904+
...CodexDriver.defaultConfig(),
905+
homePath: codexHome,
906+
binaryPath: NodePath.join(codexHome, "codex"),
907+
},
903908
}).pipe(
904909
// OS watchers can miss events written right after they start, so the test supplies them.
905910
Effect.provideService(FileSystem.FileSystem, {

0 commit comments

Comments
 (0)