Skip to content

Commit 3f6cb7a

Browse files
committed
refactor: remove unused comments
1 parent 57216d4 commit 3f6cb7a

File tree

3 files changed

+0
-64
lines changed

3 files changed

+0
-64
lines changed

bin/helpers/config.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,3 @@ config.retries = 5;
2626
config.networkErrorExitCode = 2;
2727

2828
module.exports = config;
29-
30-
31-
// Uncomment below or local testing
32-
33-
// var config = {};
34-
// config.env = "local";
35-
// var hosts = {
36-
// prod: {
37-
// uploadUrl: `https://api-cloud.browserstack.com/automate-frameworks/cypress/upload`,
38-
// rails_host: `https://api.browserstack.com`
39-
// },
40-
// local: {
41-
// uploadUrl: `http://localhost:4000/automate-frameworks/cypress/upload`,
42-
// rails_host: `https://api-local.bsstag.com`
43-
// }
44-
// };
45-
// config.uploadUrl = hosts[config.env].uploadUrl;
46-
// config.rails_host = hosts[config.env].rails_host;
47-
// config.cypress_v1 = `${config.rails_host}/automate/cypress/v1`;
48-
// config.buildUrl = `${config.cypress_v1}/builds/`;
49-
// config.buildStopUrl = `${config.cypress_v1}/builds/stop/`;
50-
// config.usageReportingUrl = `http://127.0.0.1:8000/send_event_cy_internal`;
51-
// config.fileName = "tests.zip";
52-
// config.packageFileName = "bstackPackages.tar.gz";
53-
// config.packageDirName = "tmpBstackPackages";
54-
// config.retries = 5;
55-
// config.networkErrorExitCode = 2;
56-
// module.exports = config

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ let whileProcess = (whilstCallback) => {
147147

148148
whileTries = config.retries; // reset to default after every successful request
149149

150-
console.log(`---> response code: ${response.statusCode} body is: ${JSON.stringify(body)}`)
151150
switch (response.statusCode) {
152151
case 202: // get data here and print it
153152
n = 2

bin/helpers/syncRunner.js

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,6 @@ exports.pollBuildStatus = (bsConfig, buildDetails, rawArgs, buildReportData) =>
1616
}
1717
return specDetails.failedSpecsDetails(data);
1818
}).then((data) => {
19-
// logger.info(`--> data: ${JSON.stringify(data)}\n--> buildDetails: ${JSON.stringify(buildDetails)}\n-->${JSON.stringify(rawArgs)}`)
20-
// const buildId = buildDetails.build_id;
21-
// let options = {
22-
// url: config.buildUrl + buildId,
23-
// auth: {
24-
// user: bsConfig.auth.username,
25-
// password: bsConfig.auth.access_key,
26-
// },
27-
// headers: {
28-
// 'User-Agent': utils.getUserAgent(),
29-
// },
30-
// };
31-
// logger.info(`--> options: ${JSON.stringify(options)}`)
32-
// request.get(options, function (err, resp, body) {
33-
// logger.info(`\n\n--> build details body: ${JSON.stringify(body)}`)
34-
// let message = null;
35-
// let messageType = null;
36-
// let errorCode = null;
37-
// if (err) {
38-
// message = Constants.userMessages.BUILD_INFO_FAILED;
39-
// messageType = Constants.messageTypes.ERROR;
40-
// errorCode = 'api_failed_build_info';
41-
42-
// logger.info(message);
43-
// logger.error(utils.formatRequest(err, resp, body));
44-
// } else {
45-
// let build = null;
46-
// try {
47-
// build = JSON.parse(body);
48-
// } catch (error) {
49-
// build = null;
50-
// }
51-
// logger.info(`\n\n--> build details: ${JSON.stringify(build)}`)
52-
// }
53-
// });
5419
return specsSummary.printSpecsRunSummary(data, buildDetails.machines, customErrorsToPrint);
5520
}).then((successExitCode) => {
5621
resolve(successExitCode); // exit code 0

0 commit comments

Comments
 (0)