Skip to content

Commit

Permalink
test: remove literal error messages
Browse files Browse the repository at this point in the history
Assertions will now print the values that caused the assertions
to fail.

PR-URL: nodejs#15928
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
fyesoft authored and BridgeAR committed Oct 8, 2017
1 parent 96221c2 commit ba6049f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/parallel/test-zlib-flush-drain.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ deflater.on('drain', function() {

process.once('exit', function() {
assert.strictEqual(
beforeFlush, true,
'before calling flush, writable stream should need to drain');
beforeFlush, true);
assert.strictEqual(
afterFlush, false,
'after calling flush, writable stream should not need to drain');
afterFlush, false);
assert.strictEqual(
drainCount, 1, 'the deflater should have emitted a single drain event');
drainCount, 1);
assert.strictEqual(
flushCount, 2, 'flush should be called twice');
flushCount, 2);
});

0 comments on commit ba6049f

Please sign in to comment.