From 45e15674b73e672e78f14b79c8d6fa28df005bd2 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Mon, 12 Jun 2023 14:30:29 -0600 Subject: [PATCH] chore(core): fix flaky flock_test on windows (#19477) --- cli/tests/testdata/assets/lock_target.txt | 1 + cli/tests/unit/flock_test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 cli/tests/testdata/assets/lock_target.txt diff --git a/cli/tests/testdata/assets/lock_target.txt b/cli/tests/testdata/assets/lock_target.txt new file mode 100644 index 0000000000..5a29d1c26d --- /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 7539e3d54f..fcaad9460a 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}");