Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f8bc5ab

Browse filesBrowse files
fyesoftMylesBorins
authored andcommitted
test: remove literal error messages
Assertions will now print the values that caused the assertions to fail. PR-URL: #15928 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 1c1312e commit f8bc5ab
Copy full SHA for f8bc5ab

File tree

Expand file treeCollapse file tree

1 file changed

+4
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-6
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-zlib-flush-drain.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-zlib-flush-drain.js
+4-6Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ deflater.on('drain', function() {
3838

3939
process.once('exit', function() {
4040
assert.strictEqual(
41-
beforeFlush, true,
42-
'before calling flush, writable stream should need to drain');
41+
beforeFlush, true);
4342
assert.strictEqual(
44-
afterFlush, false,
45-
'after calling flush, writable stream should not need to drain');
43+
afterFlush, false);
4644
assert.strictEqual(
47-
drainCount, 1, 'the deflater should have emitted a single drain event');
45+
drainCount, 1);
4846
assert.strictEqual(
49-
flushCount, 2, 'flush should be called twice');
47+
flushCount, 2);
5048
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.