Skip to content

Commit bf5e39b

Browse files
Merge pull request #508 from browserstack/grr-support
Feature: Enable GRR
2 parents 78b4856 + de95402 commit bf5e39b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

bin/commands/runs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = function run(args, rawArgs) {
6969
// set cypress geo location
7070
utils.setGeolocation(bsConfig, args);
7171

72-
// set spec timeout
72+
// set spec timeout
7373
utils.setSpecTimeout(bsConfig, args);
7474

7575
// accept the specs list from command line if provided
@@ -414,8 +414,8 @@ module.exports = function run(args, rawArgs) {
414414
updateCheckInterval: 1000 * 60 * 60 * 24 * 7,
415415
});
416416

417-
// Checks for update on first run.
418-
// Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing
417+
// Checks for update on first run.
418+
// Set lastUpdateCheck to 0 to spawn the check update process as notifier sets this to Date.now() for preventing
419419
// the check untill one interval period. It runs once.
420420
if (!notifier.disabled && Date.now() - notifier.config.get('lastUpdateCheck') < 50) {
421421
notifier.config.set('lastUpdateCheck', 0);

bin/helpers/getInitialDetails.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ exports.getInitialDetails = (bsConfig, args, rawArgs) => {
3333
utils.sendUsageReport(bsConfig, args, responseData["error"], Constants.messageTypes.ERROR, 'get_initial_details_failed', null, rawArgs);
3434
resolve({});
3535
} else {
36+
if (!utils.isUndefined(responseData.grr) && responseData.grr.enabled && !utils.isUndefined(responseData.grr.urls)) {
37+
config.uploadUrl = responseData.grr.urls.upload_url;
38+
}
3639
resolve(responseData);
3740
}
3841
}

0 commit comments

Comments
 (0)