test: return after inspector connection is closed (#23763)
This commit is contained in:
parent
db5cf816b4
commit
0a026cde0c
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ describe('node feature', () => {
|
||||||
.then(() => w.executeJavaScript(`new Promise(resolve => {
|
.then(() => w.executeJavaScript(`new Promise(resolve => {
|
||||||
const connection = new WebSocket(${JSON.stringify(match[1])})
|
const connection = new WebSocket(${JSON.stringify(match[1])})
|
||||||
connection.onopen = () => {
|
connection.onopen = () => {
|
||||||
resolve()
|
connection.onclose = () => resolve()
|
||||||
connection.close()
|
connection.close()
|
||||||
}
|
}
|
||||||
})`))
|
})`))
|
||||||
|
|
Loading…
Reference in a new issue