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: #15928
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
fyesoft authored and MylesBorins committed Oct 17, 2017
1 parent b93842a commit 3371ee8
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 3371ee8

Please sign in to comment.