Skip to content

Commit

Permalink
no need for double messages, #156
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed May 1, 2023
1 parent 86e2caf commit f7fec61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/server/playwrightCTClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ process.on( 'SIGINT', () => process.exit() );
const url = `${server}continuous-testing/aqua/html/continuous-loop.html?id=${ctID}`;
const loadingMessage = `Loading ${url}`;
parentPort && parentPort.postMessage( loadingMessage );
console.log( loadingMessage );
// console.log( loadingMessage );

const error = await playwrightLoad( url, {
waitAfterLoad: 10 * 60 * 1000, // 15 minutes
Expand All @@ -36,7 +36,7 @@ process.on( 'SIGINT', () => process.exit() );
rejectPageErrors: false
} );
if ( error ) {
console.error( error );
// console.error( error );

// Send the error to the parent Node process that spawned the worker.
parentPort && parentPort.postMessage( error );
Expand Down
4 changes: 2 additions & 2 deletions js/server/puppeteerCTClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ process.on( 'SIGINT', () => process.exit() );
const url = `${server}continuous-testing/aqua/html/continuous-loop.html?id=${ctID}`;
const loadingMessage = `Loading ${url}`;
parentPort && parentPort.postMessage( loadingMessage );
console.log( loadingMessage );
// console.log( loadingMessage );

const error = await puppeteerLoad( url, {
waitAfterLoad: 15 * 60 * 1000, // 15 minutes
Expand Down Expand Up @@ -55,7 +55,7 @@ process.on( 'SIGINT', () => process.exit() );
}
} );
if ( error ) {
console.error( error );
// console.error( error );

// Send the error to the parent Node process that spawned the worker.
parentPort && parentPort.postMessage( error );
Expand Down

0 comments on commit f7fec61

Please sign in to comment.