-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #475 from h0x0er/fix-execSync
Addressed execSync issues
- Loading branch information
Showing
8 changed files
with
138 additions
and
86 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { isArcRunner, sendAllowedEndpoints } from "./arc-runner"; | ||
|
||
|
||
it("should correctly recognize arc based runner", async () => { | ||
process.env["GITHUB_ACTIONS_RUNNER_EXTRA_USER_AGENT"] = | ||
"actions-runner-controller/2.0.1"; | ||
|
||
let isArc: boolean = await isArcRunner(); | ||
let isArc: boolean = await isArcRunner(); | ||
expect(isArc).toBe(true); | ||
|
||
}); | ||
|
||
it("should write endpoint files", () => { | ||
process.env["isTest"] = "1"; | ||
|
||
it("should write endpoint files", ()=>{ | ||
process.env["isTest"] = "1" | ||
|
||
let allowed_endpoints = ["github.com:443", "*.google.com:443", "youtube.com"].join(" "); | ||
let allowed_endpoints = [ | ||
"github.com:443", | ||
"*.google.com:443", | ||
"youtube.com", | ||
].join(" "); | ||
sendAllowedEndpoints(allowed_endpoints); | ||
|
||
}) | ||
}); |
Oops, something went wrong.