chore(node): ignore test-net-socket-close-after-end.js on darwin (#2285)

This commit is contained in:
Yoshiya Hinosawa 2022-05-30 13:04:08 +09:00 committed by GitHub
parent b84c4ebab8
commit 564d2ed8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -22,6 +22,7 @@ interface Config {
*/
tests: TestSuites;
windowsIgnore: TestSuites;
darwinIgnore: TestSuites;
suitesFolder: string;
versionsFolder: string;
}

View File

@ -655,6 +655,11 @@
"test-util-inspect.js"
]
},
"darwinIgnore": {
"parallel": [
"test-net-socket-close-after-end.js"
]
},
"suitesFolder": "test",
"versionsFolder": "versions"
}

View File

@ -24,6 +24,9 @@ const requireTs = "require.ts";
const windowsIgnorePaths = new Set(
getPathsFromTestSuites(config.windowsIgnore),
);
const darwinIgnorePaths = new Set(
getPathsFromTestSuites(config.darwinIgnore),
);
const decoder = new TextDecoder();
@ -36,7 +39,9 @@ for await (const path of testPaths) {
) {
continue;
}
const ignore = Deno.build.os === "windows" && windowsIgnorePaths.has(path);
const ignore =
(Deno.build.os === "windows" && windowsIgnorePaths.has(path)) ||
(Deno.build.os === "darwin" && darwinIgnorePaths.has(path));
Deno.test({
name: `Node.js compatibility "${path}"`,
ignore,