Skip to content

Commit

Permalink
test: add await for rejects
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
emilsivervik and aduh95 authored Jan 19, 2021
1 parent 95a48bc commit 608c88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-promises-file-handle-writeFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function doWriteAndCancel() {
const controller = new AbortController();
const { signal } = controller;
process.nextTick(() => controller.abort());
assert.rejects(writeFile(fileHandle, buffer, { signal }), {
await assert.rejects(writeFile(fileHandle, buffer, { signal }), {
name: 'AbortError'
});
}
Expand Down

0 comments on commit 608c88c

Please sign in to comment.