Skip to content

Commit

Permalink
test: use arrow function for callback in stream test
Browse files Browse the repository at this point in the history
PR-URL: #30561
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
Trott authored and addaleax committed Nov 30, 2019
1 parent e122d39 commit ebba322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sequential/test-stream-writable-clear-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const testStream = new StreamWritable();
testStream.cork();

for (let i = 1; i <= 5; i++) {
testStream.write(i, function() {
testStream.write(i, () => {
assert.strictEqual(
testStream._writableState.bufferedRequestCount,
testStream._writableState.getBuffer().length,
Expand Down

0 comments on commit ebba322

Please sign in to comment.