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: nodejs#30561
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
Trott committed Nov 22, 2019
1 parent bce58fd commit ac43427
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 ac43427

Please sign in to comment.