Skip to content

Commit

Permalink
[test] Fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed May 28, 2021
1 parent 262e45a commit edff6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/websocket.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ describe('WebSocket', () => {
it('closes the connection if called while connecting (3/3)', (done) => {
const server = http.createServer();

server.listen(0, function () {
server.listen(0, () => {
const ws = new WebSocket(`ws://localhost:${server.address().port}`);

ws.on('open', () => done(new Error("Unexpected 'open' event")));
Expand Down

0 comments on commit edff6bb

Please sign in to comment.