Skip to content

Commit 0089c77

Browse files
test(server): pin the editor launch environment in the new-window test
The test read the host's real environment, so on CI without DISPLAY the launcher queried systemd first and the spawned-args assertion saw the extra systemctl calls. Provide HostProcess.Environment like the neighbouring editor tests do. AI-assisted; verified with the tests and tools listed above.
1 parent 22744df commit 0089c77

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/server/src/process/externalLauncher.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ it.effect.skipIf(windowsHost)(
200200
onSpawn: (command) => spawned.push(command),
201201
}),
202202
),
203+
Effect.provideService(HostProcess.Environment, { PATH: binDir, DISPLAY: ":0" }),
203204
);
204205

205206
assert.deepEqual(

0 commit comments

Comments
 (0)