diff options
Diffstat (limited to 'cli/js/tests/process_test.ts')
-rw-r--r-- | cli/js/tests/process_test.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/js/tests/process_test.ts b/cli/js/tests/process_test.ts index 47efd86d5..1bcdf26da 100644 --- a/cli/js/tests/process_test.ts +++ b/cli/js/tests/process_test.ts @@ -229,7 +229,10 @@ unitTest( async function runRedirectStdoutStderr(): Promise<void> { const tempDir = await makeTempDir(); const fileName = tempDir + "/redirected_stdio.txt"; - const file = await open(fileName, "w"); + const file = await open(fileName, { + create: true, + write: true, + }); const p = run({ cmd: [ @@ -261,7 +264,7 @@ unitTest( const fileName = tempDir + "/redirected_stdio.txt"; const encoder = new TextEncoder(); await writeFile(fileName, encoder.encode("hello")); - const file = await open(fileName, "r"); + const file = await open(fileName); const p = run({ cmd: ["python", "-c", "import sys; assert 'hello' == sys.stdin.read();"], |