Skip to content

Commit

Permalink
use procfs to get node executable
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueBurger committed Oct 14, 2023
1 parent c99ecdd commit 74904f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Server/test/testUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export default new class TestUtil {
fs.mkdirSync(path.join(__dirname, "..", "test-context"));
} catch {}
fs.mkdirSync(path.join(__dirname, "..", "test-context", this.port.toString()));
let newProcess = spawn("node", ["burgerpanel.mjs"], {
let nodePath = fs.readlinkSync("/proc/self/exe");
let newProcess = spawn(nodePath, ["burgerpanel.mjs"], {
cwd: path.join(__dirname, "..", "_build"),
env: {
PORT: this.port.toString(),
Expand Down

0 comments on commit 74904f2

Please sign in to comment.