test: fix hardcoded path in PosixProcess test

Changed hardcoded path /etc/profiles/per-user/mat/bin/ls to /bin/ls
which exists on most Unix systems. The previous path was specific to
the original developer's machine and failed on CI runners.
This commit is contained in:
Gerkinfeltser
2026-02-19 11:06:06 -06:00
committed by Mateusz Tymek
parent 2a824b6d19
commit 427f0d5132

View File

@@ -12,8 +12,8 @@ describe.skipIf(process.platform === "win32")("PosixProcess", () => {
}); });
test("returns null for existing absolute path", async () => { test("returns null for existing absolute path", async () => {
// Use a binary that exists on this system (found via `which ls`) // Use a binary that exists on most Unix systems
const existingBinary = "/etc/profiles/per-user/mat/bin/ls"; const existingBinary = "/bin/ls";
const result = await processImpl.verifyCommand(existingBinary); const result = await processImpl.verifyCommand(existingBinary);
expect(result).toBeNull(); expect(result).toBeNull();
}); });