Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions test/parallel/test-fastutf8stream-periodicflush.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,12 @@ function runTests(sync) {
assert.ok(stream.write('hello world\n'));

// Manually flush to test that data can be written
stream.flush(common.mustSucceed());

setTimeout(common.mustCall(() => {
stream.flush(common.mustSucceed(() => {
stream.destroy();
readFile(dest, 'utf8', common.mustSucceed((data) => {
assert.strictEqual(data, 'hello world\n');
}));
}), 500);

stream.destroy();
}));
}

{
Expand Down
Loading