Skip to content

Commit

Permalink
Update test/parallel/test-fs-promises-file-handle-read.js
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
Trott and aduh95 authored Feb 15, 2021
1 parent dd48700 commit dd6afa0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/parallel/test-fs-promises-file-handle-read.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@ async function validateLargeRead(options) {

(async function() {
tmpdir.refresh();
await validateRead('Hello world', 'read-file', { useConf: false })
.then(validateRead('', 'read-empty-file', { useConf: false }))
.then(validateRead('Hello world', 'read-file-conf', { useConf: true }))
.then(validateRead('', 'read-empty-file-conf', { useConf: true }))
.then(validateLargeRead({ useConf: false }))
.then(validateLargeRead({ useConf: true }))
.then(common.mustCall());
await validateRead('Hello world', 'read-file', { useConf: false });
await validateRead('', 'read-empty-file', { useConf: false });
await validateRead('Hello world', 'read-file-conf', { useConf: true });
await validateRead('', 'read-empty-file-conf', { useConf: true });
await validateLargeRead({ useConf: false });
await validateLargeRead({ useConf: true });
})().then(common.mustCall());

0 comments on commit dd6afa0

Please sign in to comment.