summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/websocketstream_ping_test.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2022-07-18 22:49:49 +0200
committerGitHub <noreply@github.com>2022-07-18 22:49:49 +0200
commit2eb27c92db38889a0a9e0e8e356ecfe55fcf433a (patch)
tree97a988872c7d7d9b2822224edcc14a155d478095 /cli/tests/testdata/websocketstream_ping_test.ts
parent2bebdc9116f0824f0eb6241445de6fb1925f4c15 (diff)
fix: WebSocketStream ping event causes pending promises (#15235)
Diffstat (limited to 'cli/tests/testdata/websocketstream_ping_test.ts')
-rw-r--r--cli/tests/testdata/websocketstream_ping_test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/websocketstream_ping_test.ts b/cli/tests/testdata/websocketstream_ping_test.ts
new file mode 100644
index 000000000..12f847cd8
--- /dev/null
+++ b/cli/tests/testdata/websocketstream_ping_test.ts
@@ -0,0 +1,5 @@
+const wss = new WebSocketStream("ws://127.0.0.1:4513");
+const { readable } = await wss.connection;
+for await (const _ of readable) {
+ //
+}