diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-28 04:23:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-28 13:23:51 +1000 |
| commit | efcabce1c117a2e0fed8604d887695a0a19a37ad (patch) | |
| tree | 63606b73b8ded2bd4cb2955540f62a394a956b9c /tests/testdata | |
| parent | 511d13abaf5cc98cc01250f7adc5edf15dc29276 (diff) | |
feat: remove `--lock-write` flag (#25214)
This commit remove `--lock-write` that was deprecated in v1.45 release.
Closes https://github.com/denoland/deno/issues/24167.
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'tests/testdata')
| -rw-r--r-- | tests/testdata/run/lock_write_fetch/file_exists.ts | 6 | ||||
| -rw-r--r-- | tests/testdata/run/lock_write_fetch/main.ts | 7 |
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"); |
