test: fix remote-debugging-port test calling done twice (#15857)
This commit is contained in:
parent
81e00d8e56
commit
5d54d42953
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ describe('chromium feature', () => {
|
|||
output += data
|
||||
const m = /DevTools listening on ws:\/\/127.0.0.1:(\d+)\//.exec(output)
|
||||
if (m) {
|
||||
appProcess.stderr.removeAllListeners('data')
|
||||
const port = m[1]
|
||||
http.get(`http://127.0.0.1:${port}`, (res) => {
|
||||
res.destroy()
|
||||
|
|
Loading…
Reference in a new issue