Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(testrunner): do not override debug.log (#3505)

Dmitry Gozman7a77faf1943b
diff --git a/test/runner/runner.js b/test/runner/runner.js
index f303cbf0be..a8b0b41a0c 100644
--- a/test/runner/runner.js
+++ b/test/runner/runner.js
@@ -219,9 +219,6 @@ class OopWorker extends EventEmitter {
process.stderr.write(chunk);
this.stderr.push(chunk);
});
- this.on('debug', data => {
- process.stderr.write(data + '\n');
- });
}
async init() {
diff --git a/test/runner/worker.js b/test/runner/worker.js
index 12409f9873..6f4b6c16a6 100644
--- a/test/runner/worker.js
+++ b/test/runner/worker.js
@@ -14,7 +14,6 @@
* limitations under the License.
*/
-const debug = require('debug');
const { fixturePool } = require('./fixturesUI');
const { gracefullyCloseAll } = require('../../lib/server/processLauncher');
const { TestRunner, initializeImageMatcher } = require('./testRunner');
@@ -42,10 +41,6 @@ process.stderr.write = chunk => {
sendMessageToParent('stderr', chunkToParams(chunk));
};
-debug.log = data => {
- sendMessageToParent('debug', data);
-};
-
process.on('disconnect', gracefullyCloseAndExit);
process.on('SIGINT',() => {});
process.on('SIGTERM',() => {});