From 646afdf259e9e25b59c5305aff231e131ea2fc52 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Tue, 31 Oct 2023 09:43:04 -0700 Subject: chore: use kqueue backend of notify on macOS (#21028) Towards #20996 "macos_fsevent" feature of notify links us to CoreFoundation on macOS. --- 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 9330f2007..d923d54c6 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"); - }, Deno.errors.NotFound); + }, Error); } }); @@ -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