diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-08-11 10:20:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 10:20:47 -0400 |
commit | 15a763152f9d392cb80692262f8de5ef8ae15495 (patch) | |
tree | fcd1a59777f95920bf3502519983d6cc0d882a9a /cli/tests/lock_write_fetch.ts | |
parent | a0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff) |
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/tests/lock_write_fetch.ts')
-rw-r--r-- | cli/tests/lock_write_fetch.ts | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/cli/tests/lock_write_fetch.ts b/cli/tests/lock_write_fetch.ts deleted file mode 100644 index b6ecf4747..000000000 --- a/cli/tests/lock_write_fetch.ts +++ /dev/null @@ -1,58 +0,0 @@ -try { - Deno.removeSync("./lock_write_fetch.json"); -} catch { - // pass -} - -const fetchProc = Deno.run({ - stdout: "null", - stderr: "null", - cmd: [ - Deno.execPath(), - "cache", - "--reload", - "--lock=lock_write_fetch.json", - "--lock-write", - "--cert=tls/RootCA.pem", - "https_import.ts", - ], -}); - -const fetchCode = (await fetchProc.status()).code; -console.log(`fetch code: ${fetchCode}`); - -const fetchCheckProc = Deno.run({ - stdout: "null", - stderr: "null", - cmd: [ - Deno.execPath(), - "cache", - "--lock=lock_write_fetch.json", - "--cert=tls/RootCA.pem", - "https_import.ts", - ], -}); - -const fetchCheckProcCode = (await fetchCheckProc.status()).code; -console.log(`fetch check code: ${fetchCheckProcCode}`); - -Deno.removeSync("./lock_write_fetch.json"); - -const runProc = Deno.run({ - stdout: "null", - stderr: "null", - cmd: [ - Deno.execPath(), - "run", - "--lock=lock_write_fetch.json", - "--lock-write", - "--allow-read", - "file_exists.ts", - "lock_write_fetch.json", - ], -}); - -const runCode = (await runProc.status()).code; -console.log(`run code: ${runCode}`); - -Deno.removeSync("./lock_write_fetch.json"); |