mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
chore(core): fix flaky flock_test on windows (#19477)
This commit is contained in:
parent
e1be2bb80d
commit
45e15674b7
2 changed files with 2 additions and 1 deletions
1
cli/tests/testdata/assets/lock_target.txt
vendored
Normal file
1
cli/tests/testdata/assets/lock_target.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This file is used for file locking tests and should not be used for anything else.
|
|
@ -108,7 +108,7 @@ async function checkFirstBlocksSecond(opts: {
|
||||||
}
|
}
|
||||||
|
|
||||||
function runFlockTestProcess(opts: { exclusive: boolean; sync: boolean }) {
|
function runFlockTestProcess(opts: { exclusive: boolean; sync: boolean }) {
|
||||||
const path = "cli/tests/testdata/assets/fixture.json";
|
const path = "cli/tests/testdata/assets/lock_target.txt";
|
||||||
const scriptText = `
|
const scriptText = `
|
||||||
const { rid } = Deno.openSync("${path}");
|
const { rid } = Deno.openSync("${path}");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue