diff options
Diffstat (limited to 'std/fs/walk_test.ts')
-rw-r--r-- | std/fs/walk_test.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/std/fs/walk_test.ts b/std/fs/walk_test.ts index 91cfd57c8..07f846b49 100644 --- a/std/fs/walk_test.ts +++ b/std/fs/walk_test.ts @@ -20,7 +20,7 @@ export async function testWalk( await t(); } finally { chdir(origCwd); - remove(d, { recursive: true }); + await remove(d, { recursive: true }); } } Deno.test({ skip, name: `[walk] ${name}`, fn }); @@ -46,7 +46,8 @@ export async function walkArray( } export async function touch(path: string): Promise<void> { - await open(path, "w"); + const f = await open(path, "w"); + f.close(); } function assertReady(expectedLength: number): void { |