We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee45b79 commit 1424a00Copy full SHA for 1424a00
test/client.js
@@ -56,7 +56,7 @@ test('ws: client.start()', function (t) {
56
})
57
58
function testClientStop (t, serverType) {
59
- t.plan(3)
+ t.plan(4)
60
61
common.createServer(t, serverType, function (server, announceUrl) {
62
var client = new Client({
@@ -73,7 +73,9 @@ function testClientStop (t, serverType) {
73
74
client.start()
75
76
- setTimeout(function () {
+ client.once('update', function () {
77
+ t.pass('client received response to "start" message')
78
+
79
client.stop()
80
81
client.once('update', function (data) {
@@ -85,7 +87,7 @@ function testClientStop (t, serverType) {
85
87
server.close()
86
88
client.destroy()
89
- }, 1000)
90
+ })
91
92
}
93
0 commit comments