mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-04 17:26:46 +00:00
Add delay in server test
This commit is contained in:
@@ -572,10 +572,13 @@ describe('Server', function() {
|
||||
|
||||
var server = new Server(new Remote(), 'ws://localhost:5748');
|
||||
|
||||
server.once('disconnect', function() {
|
||||
done();
|
||||
});
|
||||
|
||||
server.once('connect', function() {
|
||||
server._retryConnect = function(){
|
||||
wss.close();
|
||||
done();
|
||||
};
|
||||
server._ws.emit('error', new Error());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user