diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/node_compat/config.jsonc | 1 | ||||
-rw-r--r-- | cli/tests/node_compat/test/parallel/test-fs-watchfile.js | 2 | ||||
-rw-r--r-- | cli/tests/unit/fs_events_test.ts | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/cli/tests/node_compat/config.jsonc b/cli/tests/node_compat/config.jsonc index 93a51b671..85a5818e5 100644 --- a/cli/tests/node_compat/config.jsonc +++ b/cli/tests/node_compat/config.jsonc @@ -70,6 +70,7 @@ "test-fs-open.js", "test-fs-opendir.js", "test-fs-rmdir-recursive.js", + "test-fs-watchfile.js", "test-fs-write-file.js", "test-fs-write.js", "test-http-url.parse-https.request.js", diff --git a/cli/tests/node_compat/test/parallel/test-fs-watchfile.js b/cli/tests/node_compat/test/parallel/test-fs-watchfile.js index 4acad4b94..a23620aff 100644 --- a/cli/tests/node_compat/test/parallel/test-fs-watchfile.js +++ b/cli/tests/node_compat/test/parallel/test-fs-watchfile.js @@ -107,6 +107,6 @@ if (common.isLinux || common.isOSX || common.isWindows) { fs.writeFile(path.join(dir, 'foo.txt'), 'foo', common.mustCall((err) => { if (err) assert.fail(err); })); - }, 1); + }, 20); })); } 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; } |