mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
chore(node): ignore test-net-socket-close-after-end.js on darwin (#2285)
This commit is contained in:
parent
b84c4ebab8
commit
564d2ed8ab
@ -22,6 +22,7 @@ interface Config {
|
||||
*/
|
||||
tests: TestSuites;
|
||||
windowsIgnore: TestSuites;
|
||||
darwinIgnore: TestSuites;
|
||||
suitesFolder: string;
|
||||
versionsFolder: string;
|
||||
}
|
||||
|
@ -655,6 +655,11 @@
|
||||
"test-util-inspect.js"
|
||||
]
|
||||
},
|
||||
"darwinIgnore": {
|
||||
"parallel": [
|
||||
"test-net-socket-close-after-end.js"
|
||||
]
|
||||
},
|
||||
"suitesFolder": "test",
|
||||
"versionsFolder": "versions"
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user