diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-06-12 14:30:29 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 20:30:29 +0000 |
commit | 45e15674b73e672e78f14b79c8d6fa28df005bd2 (patch) | |
tree | 1cb842c7b875a64e0906204053433ff17b4a5d09 /cli/tests | |
parent | e1be2bb80d2c9e7f56221d53349cdcea6d76ddde (diff) |
chore(core): fix flaky flock_test on windows (#19477)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/testdata/assets/lock_target.txt | 1 | ||||
-rw-r--r-- | cli/tests/unit/flock_test.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cli/tests/testdata/assets/lock_target.txt b/cli/tests/testdata/assets/lock_target.txt new file mode 100644 index 000000000..5a29d1c26 --- /dev/null +++ b/cli/tests/testdata/assets/lock_target.txt @@ -0,0 +1 @@ +This file is used for file locking tests and should not be used for anything else.
\ No newline at end of file diff --git a/cli/tests/unit/flock_test.ts b/cli/tests/unit/flock_test.ts index 7539e3d54..fcaad9460 100644 --- a/cli/tests/unit/flock_test.ts +++ b/cli/tests/unit/flock_test.ts @@ -108,7 +108,7 @@ async function checkFirstBlocksSecond(opts: { } 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 { rid } = Deno.openSync("${path}"); |