Skip to content

Commit

Permalink
test: changed function to arrow function
Browse files Browse the repository at this point in the history
PR-URL: #32045
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
ProdipRoy89 authored and MylesBorins committed Mar 9, 2020
1 parent 6413524 commit 3d64c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-stream3-pause-then-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function pipeLittle() {
console.error('pipe a little');
const w = new Writable();
let written = 0;
w.on('finish', function() {
w.on('finish', () => {
assert.strictEqual(written, 200);
setImmediate(read1234);
});
Expand Down Expand Up @@ -160,7 +160,7 @@ function pipe() {
written += chunk.length;
cb();
};
w.on('finish', function() {
w.on('finish', () => {
console.error('written', written, totalPushed);
assert.strictEqual(written, expectEndingData);
assert.strictEqual(totalPushed, expectTotalData);
Expand Down

0 comments on commit 3d64c9e

Please sign in to comment.