Only do initial wait when not running tests

This commit is contained in:
Robert
2026-06-01 16:43:42 +01:00
parent dfc14113e3
commit d40e417f3c
2 changed files with 6 additions and 2 deletions

4
lib/entry-points.js generated
View File

@@ -157483,7 +157483,9 @@ async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
try {
const client = getApiClient();
let statusCheckBackoff = STATUS_CHECK_INITIAL_BACKOFF_MILLISECONDS;
await delay(statusCheckBackoff, { allowProcessExit: false });
if (process.env["NODE_ENV"] !== "test") {
await delay(statusCheckBackoff, { allowProcessExit: false });
}
for (let statusCheckCount = 1; statusCheckCount <= STATUS_CHECK_MAX_TRIES; statusCheckCount++) {
let response = void 0;
try {