Skip to content

Commit 55895ef

Browse files
committed
Stub GITHUB_WORKSPACE in test
1 parent fe16891 commit 55895ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ test("getCgroupCpuCountFromCpus returns undefined if the CPU file exists but is
536536
});
537537

538538
test("checkDiskUsage succeeds and produces positive numbers", async (t) => {
539+
process.env["GITHUB_WORKSPACE"] = os.tmpdir();
539540
const diskUsage = await util.checkDiskUsage(getRunnerLogger(true));
540541
t.true(
541542
diskUsage?.numAvailableBytes !== undefined &&

0 commit comments

Comments
 (0)