Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
07souravkunda committed Jul 23, 2024
1 parent 1b5680f commit 8a490c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/testObservability/helper/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ exports.TEST_OBSERVABILITY_REPORTER = 'browserstack-cypress-cli/bin/testObservab

exports.TEST_OBSERVABILITY_REPORTER_LOCAL = path.join(__dirname, '..', 'reporter');

exports.PENDING_QUEUS_FILE = `pending_queues_${process.pid}.json`;
exports.PENDING_QUEUES_FILE = `pending_queues_${process.pid}.json`;
2 changes: 1 addition & 1 deletion bin/testObservability/helper/requestQueueHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class RequestQueueHandler {

fs.writeFileSync(path.join(__dirname, PENDING_QUEUES_FILE), JSON.stringify(this.queue));
this.queue = [];
cp.spawnSync('node', [path.join(__dirname, 'cleanupQueueSync.js'), path.join(__dirname, PENDING_QUEUS_FILE)], {stdio: 'inherit'});
cp.spawnSync('node', [path.join(__dirname, 'cleanupQueueSync.js'), path.join(__dirname, PENDING_QUEUES_FILE)], {stdio: 'inherit'});
fs.unlinkSync(path.join(__dirname, PENDING_QUEUES_FILE));
}

Expand Down
3 changes: 0 additions & 3 deletions bin/testObservability/reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const { v4: uuidv4 } = require('uuid');
const { IPC_EVENTS } = require('../helper/constants');
const { startIPCServer } = require('../plugin/ipcServer');

const ipc = require('node-ipc');

const HOOK_TYPES_MAP = {
"before all": "BEFORE_ALL",
"after all": "AFTER_ALL",
Expand Down Expand Up @@ -200,7 +198,6 @@ class MyReporter {
server.on(IPC_EVENTS.COMMAND, this.cypressCommandListener.bind(this));
server.on(IPC_EVENTS.CUCUMBER, this.cypressCucumberStepListener.bind(this));
server.on(IPC_EVENTS.PLATFORM_DETAILS, this.cypressPlatformDetailsListener.bind(this));
this.ipcServer = server;
},
(server) => {
server.off(IPC_EVENTS.CONFIG, '*');
Expand Down

0 comments on commit 8a490c8

Please sign in to comment.