diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-10-31 09:43:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 16:43:04 +0000 |
commit | 646afdf259e9e25b59c5305aff231e131ea2fc52 (patch) | |
tree | 95a886cf8129d9c53e9703bcb70cb0aed621aa2b /cli/tests/unit | |
parent | e4308aebc0a060e7210362e576e792e558384c24 (diff) |
chore: use kqueue backend of notify on macOS (#21028)
Towards #20996
"macos_fsevent" feature of notify links us to CoreFoundation on macOS.
Diffstat (limited to 'cli/tests/unit')
-rw-r--r-- | cli/tests/unit/fs_events_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |