Skip to content

Commit 4d5af7b

Browse files
committed
test(ssh): read PATH through HostProcess in the launch script tests
1 parent 5899bf9 commit 4d5af7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/ssh/src/tunnel.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ server.listen(Number(flag("--port")), "127.0.0.1", () => {
404404
const prepareLaunch = Effect.gen(function* () {
405405
const fs = yield* FileSystem.FileSystem;
406406
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
407+
const hostPath = (yield* HostProcess.Environment).PATH ?? "";
407408
const root = yield* fs.makeTempDirectoryScoped({ prefix: "t3-launch-script-" });
408409
const home = `${root}/home`;
409410
const fakeServer = `${root}/fake-t3.cjs`;
@@ -444,7 +445,7 @@ server.listen(Number(flag("--port")), "127.0.0.1", () => {
444445
),
445446
}
446447
: {}),
447-
env: { PATH: `${home}/bin:${process.env.PATH ?? ""}`, HOME: home },
448+
env: { PATH: `${home}/bin:${hostPath}`, HOME: home },
448449
extendEnv: false,
449450
}),
450451
);

0 commit comments

Comments
 (0)