Skip to content

Commit d40e417

Browse files
Only do initial wait when not running tests
1 parent dfc1411 commit d40e417

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/entry-points.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload-lib.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,9 @@ export async function waitForProcessing(
858858

859859
// Do an initial wait because processing will always take a minimum of 2-3 seconds
860860
let statusCheckBackoff = STATUS_CHECK_INITIAL_BACKOFF_MILLISECONDS;
861-
await util.delay(statusCheckBackoff, { allowProcessExit: false });
861+
if (process.env["NODE_ENV"] !== "test") {
862+
await util.delay(statusCheckBackoff, { allowProcessExit: false });
863+
}
862864

863865
for (
864866
let statusCheckCount = 1;

0 commit comments

Comments
 (0)