Avoid sending status reports in test mode

This commit is contained in:
Andrew Eisenberg 2022-01-31 18:46:49 -08:00
parent e9d52340a3
commit 36419a79c1
6 changed files with 16 additions and 2 deletions

1
lib/upload-lib.js generated
View file

@ -95,6 +95,7 @@ async function uploadPayload(payload, repositoryNwo, apiDetails, logger) {
// If in test mode we don't want to upload the results
const testMode = process.env["TEST_MODE"] === "true" || false;
if (testMode) {
logger.debug("In test mode. Results are not uploaded.");
return;
}
const client = api.getApiClient(apiDetails);