diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/integration/shared_library_tests.rs | 6 | ||||
-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 |
4 files changed, 8 insertions, 5 deletions
diff --git a/cli/tests/integration/shared_library_tests.rs b/cli/tests/integration/shared_library_tests.rs index 213da1204..506c537f6 100644 --- a/cli/tests/integration/shared_library_tests.rs +++ b/cli/tests/integration/shared_library_tests.rs @@ -43,9 +43,13 @@ fn macos_shared_libraries() { use test_util as util; // target/release/deno: + // /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1953.1.0) + // /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1228.0.0) // /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0) // /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0) - const EXPECTED: [&str; 3] = [ + const EXPECTED: [&str; 5] = [ + "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation", + "/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices", "/usr/lib/libiconv.2.dylib", "/usr/lib/libSystem.B.dylib", "/usr/lib/libobjc.A.dylib", diff --git a/cli/tests/node_compat/config.jsonc b/cli/tests/node_compat/config.jsonc index 85a5818e5..93a51b671 100644 --- a/cli/tests/node_compat/config.jsonc +++ b/cli/tests/node_compat/config.jsonc @@ -70,7 +70,6 @@ "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 a23620aff..4acad4b94 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); })); - }, 20); + }, 1); })); } 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; } |