Skip to content

Commit

Permalink
moved tests to mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Mar 21, 2021
1 parent 35a79b4 commit 2ee18ed
Show file tree
Hide file tree
Showing 10 changed files with 1,051 additions and 2,244 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ vendor
dist
docs
tmp
.github
4 changes: 1 addition & 3 deletions lib/setup/bind-server-to-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export default async function bindServerToPort(server, WebSocketServer, COUNTER,

server.on('error', (e) => {
if (e.code === 'EADDRINUSE') {
window.setTimeout(() => {
bindServerToPort(server, WebSocketServer, COUNTER, Object.assign(config, { httpPort: config.httpPort + 1 }), promise);
}, 10);
bindServerToPort(server, WebSocketServer, COUNTER, Object.assign(config, { httpPort: config.httpPort + 1 }), promise);
}
console.log('UNKNOWN ERROR', e);
});
Expand Down
Loading

0 comments on commit 2ee18ed

Please sign in to comment.