From 0a026cde0c9f5774e652f0566d9f1ee51706a5e4 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 26 May 2020 23:47:49 +0900 Subject: [PATCH] test: return after inspector connection is closed (#23763) --- spec-main/node-spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec-main/node-spec.ts b/spec-main/node-spec.ts index ae5fda1883..a3e4af9689 100644 --- a/spec-main/node-spec.ts +++ b/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() } })`))