From 82643857cc77a80f9a819584035ec147a6114553 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Wed, 1 Nov 2023 08:54:27 -0700 Subject: Revert "chore: use kqueue backend of notify on macOS" (#21039) Reverts denoland/deno#21028 Reason: https://github.com/notify-rs/notify/blob/main/notify/src/kqueue.rs#L79-L81 Need to wait for the watcher thread to spawn otherwise we hit flakes --------- Signed-off-by: Divy Srivastava --- cli/tests/unit/fs_events_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/unit') diff --git a/cli/tests/unit/fs_events_test.ts b/cli/tests/unit/fs_events_test.ts index d923d54c6..9330f2007 100644 --- a/cli/tests/unit/fs_events_test.ts +++ b/cli/tests/unit/fs_events_test.ts @@ -22,7 +22,7 @@ Deno.test({ permissions: { read: true } }, function watchFsInvalidPath() { } else { assertThrows(() => { Deno.watchFs("non-existent.file"); - }, Error); + }, Deno.errors.NotFound); } }); @@ -32,7 +32,7 @@ async function getTwoEvents( const events = []; for await (const event of iter) { events.push(event); - if (events.length == 2) break; + if (events.length > 2) break; } return events; } -- cgit v1.2.3