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 MylesBorins committed Dec 17, 2019
1 parent 4a5f00c commit 59c9592
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 59c9592

Please sign in to comment.