Browse Source

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

Cheng Zhao 4 years ago
parent
commit
0a026cde0c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec-main/node-spec.ts

+ 1 - 1
spec-main/node-spec.ts

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