Commit e74b724e authored by Michaël Zasso's avatar Michaël Zasso
Browse files

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: https://github.com/nodejs/node/pull/9812


Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarPrince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
parent cf410af6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment