mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Remove now unnecessary test skipping
This commit is contained in:
@@ -141,14 +141,9 @@ test("scanArtifactsForTokens handles files without tokens", async (t) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// This test is slow (extracts and scans a zip artifact), so by default we only run it in CI. Set
|
// `scanArchiveFile` does not support Windows, so we skip this test there.
|
||||||
// RUN_SLOW_TESTS=1 to run it locally.
|
if (os.platform() !== "win32") {
|
||||||
if (
|
|
||||||
os.platform() !== "win32" &&
|
|
||||||
(process.env.CI === "true" || process.env.RUN_SLOW_TESTS === "1")
|
|
||||||
) {
|
|
||||||
test("scanArtifactsForTokens finds token in debug artifacts", async (t) => {
|
test("scanArtifactsForTokens finds token in debug artifacts", async (t) => {
|
||||||
t.timeout(15000); // 15 seconds
|
|
||||||
const messages: LoggedMessage[] = [];
|
const messages: LoggedMessage[] = [];
|
||||||
const logger = getRecordingLogger(messages, { logToConsole: false });
|
const logger = getRecordingLogger(messages, { logToConsole: false });
|
||||||
// The zip here is a regression test based on
|
// The zip here is a regression test based on
|
||||||
|
|||||||
Reference in New Issue
Block a user