test: more logging in node inspector test (#23746)
This commit is contained in:
parent
2029ff1903
commit
0dabd5e8c7
2 changed files with 8 additions and 2 deletions
|
@ -258,10 +258,13 @@ describe('node feature', () => {
|
|||
const success = false;
|
||||
function listener (data: Buffer) {
|
||||
output += data;
|
||||
console.log(data); // NOTE: temporary debug logging to try to catch flake.
|
||||
console.log(data.toString()); // NOTE: temporary debug logging to try to catch flake.
|
||||
const match = /^Debugger listening on (ws:\/\/.+:\d+\/.+)\n/m.exec(output.trim());
|
||||
if (match) {
|
||||
cleanup();
|
||||
// NOTE: temporary debug logging to try to catch flake.
|
||||
child.stderr.on('data', (m) => console.log(m.toString()));
|
||||
child.stdout.on('data', (m) => console.log(m.toString()));
|
||||
const w = (webContents as any).create({}) as WebContents;
|
||||
w.loadURL('about:blank')
|
||||
.then(() => w.executeJavaScript(`new Promise(resolve => {
|
||||
|
|
5
spec/fixtures/module/delay-exit.js
vendored
5
spec/fixtures/module/delay-exit.js
vendored
|
@ -1,3 +1,6 @@
|
|||
const { app } = require('electron');
|
||||
|
||||
process.on('message', () => app.quit());
|
||||
process.on('message', () => {
|
||||
console.log('Notified to quit');
|
||||
app.quit();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue