summaryrefslogtreecommitdiff
path: root/cli/tests/unit/flock_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2022-06-13 15:28:00 -0400
committerGitHub <noreply@github.com>2022-06-13 21:28:00 +0200
commit21dfeea3c48cf6101d71b39a1d2b0f9406818300 (patch)
tree0ef0627159ad366d1755081247776b9759b14017 /cli/tests/unit/flock_test.ts
parente6218d9d23f71fe5c42dbd76d3016b147892b476 (diff)
Remove unstable Deno.sleepSync (#14719)
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'cli/tests/unit/flock_test.ts')
-rw-r--r--cli/tests/unit/flock_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/unit/flock_test.ts b/cli/tests/unit/flock_test.ts
index 3c73d0481..fbc061593 100644
--- a/cli/tests/unit/flock_test.ts
+++ b/cli/tests/unit/flock_test.ts
@@ -136,7 +136,7 @@ function runFlockTestProcess(opts: { exclusive: boolean; sync: boolean }) {
// the lock so that the enter time of the next process doesn't
// occur at the same time as this exit time
const exitTime = new Date().getTime();
- Deno.sleepSync(100);
+ await new Promise(resolve => setTimeout(resolve, 100));
// release the lock
${opts.sync ? "Deno.funlockSync(rid);" : "await Deno.funlock(rid);"}