mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: fix race condition in debugger spec (#17091)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user