Skip to content

Commit ec34856

Browse files
committed
CLOSED - task 2: Make pass all tests relaible.
https://github.com/Gottox/socket.io-java-client/issues/issue/2
1 parent b904627 commit ec34856

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/io/socket/testutils/socketio.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ var ns1 = io.of('/ns1').on('connection', function(socket) {
4747
});
4848

4949
var ns2 = io.of('/ns2').on('connection', function(socket) {
50-
main.send("ns2");
51-
ns1.send("ns2");
50+
setTimeout(function() {
51+
main.send("ns2");
52+
ns1.send("ns2");
53+
}, 200);
5254
});
5355

5456
process.stdout.write("__:OK\n");

0 commit comments

Comments
 (0)