Skip to content

Commit

Permalink
Fix close socket after test
Browse files Browse the repository at this point in the history
  • Loading branch information
fijiwebdesign committed May 20, 2020
1 parent fcf387a commit f0f6dd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "SocketIO client running inside a shared WebWorker thread",
"main": "index.js",
"scripts": {
"test": "mocha",
"test": "mocha test/*.test.js",
"test:e2e": "npx cypress open",
"start": "node server.js",
"start:io": "node server.js",
Expand Down
1 change: 1 addition & 0 deletions test/socket.io-worker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe('socket.io-worker', () => {

ws.on('message', event => {
assert(event === hello)
if (ws.socket) ws.socket.close() // @todo fix
done()
})
})
Expand Down

0 comments on commit f0f6dd7

Please sign in to comment.