summaryrefslogtreecommitdiff
path: root/cli/tests/unit
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-11-01 08:54:27 -0700
committerGitHub <noreply@github.com>2023-11-01 15:54:27 +0000
commit82643857cc77a80f9a819584035ec147a6114553 (patch)
treed74a342802b2a529e18a1afd4a7d4307e5da6b2a /cli/tests/unit
parent8ea2d926a9c75b0b13e7ad37e7181657d680560e (diff)
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 <dj.srivastava23@gmail.com>
Diffstat (limited to 'cli/tests/unit')
-rw-r--r--cli/tests/unit/fs_events_test.ts4
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 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;
}