test: fix race condition in debugger spec (#17091)
This commit is contained in:
parent
5be93566ee
commit
28b150f6dc
1 changed files with 2 additions and 1 deletions
|
@ -142,8 +142,9 @@ describe('debugger module', () => {
|
|||
w.webContents.loadURL('about:blank')
|
||||
w.webContents.debugger.attach()
|
||||
|
||||
const opened = emittedOnce(w.webContents, 'devtools-opened')
|
||||
w.webContents.openDevTools()
|
||||
await emittedOnce(w.webContents, 'devtools-opened')
|
||||
await opened
|
||||
|
||||
const params = { 'expression': '4+2' }
|
||||
const res = await w.webContents.debugger.sendCommand('Runtime.evaluate', params)
|
||||
|
|
Loading…
Reference in a new issue