mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: fix remote-debugging-port test calling done twice (#15857)
This commit is contained in:
committed by
Cheng Zhao
parent
81e00d8e56
commit
5d54d42953
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user