mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 19:50:32 +08:00
Stub GITHUB_WORKSPACE in test
This commit is contained in:
@@ -536,6 +536,7 @@ test("getCgroupCpuCountFromCpus returns undefined if the CPU file exists but is
|
||||
});
|
||||
|
||||
test("checkDiskUsage succeeds and produces positive numbers", async (t) => {
|
||||
process.env["GITHUB_WORKSPACE"] = os.tmpdir();
|
||||
const diskUsage = await util.checkDiskUsage(getRunnerLogger(true));
|
||||
t.true(
|
||||
diskUsage?.numAvailableBytes !== undefined &&
|
||||
|
||||
Reference in New Issue
Block a user