diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-10-17 15:19:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-17 22:19:37 +0000 |
commit | 2435a361c64fc9bac4aee7b268b4c0a42eee4471 (patch) | |
tree | 3a13789a3b2cce781d6a070d230f930195e7c03b /tests/unit_node | |
parent | 8cfd9968fa9ef79777ac2e7dfcef8f1ed618b78b (diff) |
chore: fix flaky COPYFILE_EXCL test (#26370)
It was missing an await
Diffstat (limited to 'tests/unit_node')
-rw-r--r-- | tests/unit_node/fs_test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit_node/fs_test.ts b/tests/unit_node/fs_test.ts index 17da45dcf..ac9c4a53e 100644 --- a/tests/unit_node/fs_test.ts +++ b/tests/unit_node/fs_test.ts @@ -223,7 +223,9 @@ Deno.test("[node/fs] copyFile COPYFILE_EXCL works", async () => { await writeFile(src, ""); await copyFile(src, dest, fsPromiseConstants.COPYFILE_EXCL); assert(existsSync(dest)); - assertRejects(() => copyFile(src, dest, fsPromiseConstants.COPYFILE_EXCL)); + await assertRejects(() => + copyFile(src, dest, fsPromiseConstants.COPYFILE_EXCL) + ); const dest2 = join(dir, "dest2.txt"); copyFileSync(src, dest2, fsPromiseConstants.COPYFILE_EXCL); assert(existsSync(dest2)); |