test: return after inspector connection is closed (#23763)

This commit is contained in:
Cheng Zhao 2020-05-26 23:47:49 +09:00 committed by GitHub
parent db5cf816b4
commit 0a026cde0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,7 +270,7 @@ describe('node feature', () => {
.then(() => w.executeJavaScript(`new Promise(resolve => {
const connection = new WebSocket(${JSON.stringify(match[1])})
connection.onopen = () => {
resolve()
connection.onclose = () => resolve()
connection.close()
}
})`))