test: refactor test-net-pingpong · nodejs/node@8694811 · GitHub
Skip to content

Commit 8694811

Browse files
targosMylesBorins
authored andcommitted
test: refactor test-net-pingpong
* var -> const. * Verify that callbacks are called with common.mustCall. * Replace usage of deprecated `server.connections`. * Use common.fail instead of rethrowing errors. * Remove console.log statements. * assert.equal -> assert.strictEqual. * Correct order of arguments in assert.strictEqual. PR-URL: #9812 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e849dd0 commit 8694811

1 file changed

Lines changed: 56 additions & 68 deletions

File tree

test/parallel/test-net-pingpong.js

Lines changed: 56 additions & 68 deletions

0 commit comments

Comments
 (0)