diff options
Diffstat (limited to 'std/fs/exists_test.ts')
-rw-r--r-- | std/fs/exists_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts index 0a1293d96..4202f2734 100644 --- a/std/fs/exists_test.ts +++ b/std/fs/exists_test.ts @@ -121,14 +121,14 @@ for (const s of scenes) { args.push(path.join(testdataDir, s.async ? "exists.ts" : "exists_sync.ts")); args.push(s.file); - const { stdout } = Deno.run({ + const p = Deno.run({ stdout: "piped", cwd: testdataDir, args: args }); - const output = await Deno.readAll(stdout!); - + const output = await p.output(); + p.close(); assertStrContains(new TextDecoder().decode(output), s.output); }); // done |