summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/run/lock_write_fetch/file_exists.ts6
-rw-r--r--tests/testdata/run/lock_write_fetch/main.ts7
2 files changed, 3 insertions, 10 deletions
diff --git a/tests/testdata/run/lock_write_fetch/file_exists.ts b/tests/testdata/run/lock_write_fetch/file_exists.ts
deleted file mode 100644
index 20de4d4f2..000000000
--- a/tests/testdata/run/lock_write_fetch/file_exists.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-try {
- await Deno.open(Deno.args[0]);
- Deno.exit(0);
-} catch (_e) {
- Deno.exit(1);
-}
diff --git a/tests/testdata/run/lock_write_fetch/main.ts b/tests/testdata/run/lock_write_fetch/main.ts
index 57bc54d02..4ce631311 100644
--- a/tests/testdata/run/lock_write_fetch/main.ts
+++ b/tests/testdata/run/lock_write_fetch/main.ts
@@ -11,7 +11,6 @@ const fetchProc = await new Deno.Command(Deno.execPath(), {
"cache",
"--reload",
"--lock=lock_write_fetch.json",
- "--lock-write",
"--cert=tls/RootCA.pem",
"run/https_import.ts",
],
@@ -40,13 +39,13 @@ const runProc = await new Deno.Command(Deno.execPath(), {
args: [
"run",
"--lock=lock_write_fetch.json",
- "--lock-write",
"--allow-read",
- "run/lock_write_fetch/file_exists.ts",
- "lock_write_fetch.json",
+ "--cert=tls/RootCA.pem",
+ "run/https_import.ts",
],
}).output();
console.log(`run code: ${runProc.code}`);
+await Deno.stat("./lock_write_fetch.json");
Deno.removeSync("./lock_write_fetch.json");