Skip to content

Commit b37e12b

Browse files
Use isInTestMode() instead of NODE_ENV
1 parent d40e417 commit b37e12b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/entry-points.js

Lines changed: 1 addition & 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import {
3636
getRequiredEnvParam,
3737
GitHubVariant,
3838
GitHubVersion,
39+
isInTestMode,
3940
satisfiesGHESVersion,
4041
} from "./util";
4142

@@ -858,7 +859,7 @@ export async function waitForProcessing(
858859

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

0 commit comments

Comments
 (0)