test: fix remote-debugging-port test calling done twice (#15857)

This commit is contained in:
Jeremy Apthorp 2018-11-27 17:59:05 -08:00 committed by Cheng Zhao
parent 81e00d8e56
commit 5d54d42953

View file

@ -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()