diff --git a/lib/review-apps.js b/lib/review-apps.js index f01aa07..1a5f003 100644 --- a/lib/review-apps.js +++ b/lib/review-apps.js @@ -12,7 +12,7 @@ const DEFAULT_HEADERS = { const CONFLICT_STATUS_CODE = 409; const GET_REVIEW_APP_NAME_NUM_RETRIES = 1; -const NUM_RETRIES = 60; +const NUM_RETRIES = process.env.HEROKU_REVIEW_APP_NUM_RETRIES || 60; const RETRY_EXP_BACK_OFF_FACTOR = 1; const MIN_TIMEOUT = 10 * 1000; const REVIEW_APP_STATUSES = {