test: refactor test-stream-unshift-read-race · joyeecheung/node@55f5301 · GitHub
Skip to content

Commit 55f5301

Browse files
committed
test: refactor test-stream-unshift-read-race
* add RegExp as second argument to assert.throws() * replace process.on('exit', ...) boolean checks with common.mustCall() * assert.equal() -> assert.strictEqual() * add 1 ms duration as second argument to setTimeout() * var -> const PR-URL: nodejs#10532 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e5674e1 commit 55f5301

1 file changed

Lines changed: 30 additions & 37 deletions

File tree

Lines changed: 30 additions & 37 deletions

0 commit comments

Comments
 (0)