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
+3 -1
View File
@@ -858,7 +858,9 @@ export async function waitForProcessing(
// Do an initial wait because processing will always take a minimum of 2-3 seconds
let statusCheckBackoff = STATUS_CHECK_INITIAL_BACKOFF_MILLISECONDS;
await util.delay(statusCheckBackoff, { allowProcessExit: false });
if (process.env["NODE_ENV"] !== "test") {
await util.delay(statusCheckBackoff, { allowProcessExit: false });
}
for (
let statusCheckCount = 1;