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:
committed by
Mateusz Tymek
parent
2a824b6d19
commit
427f0d5132
@@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user