Skip to content

Commit b955d03

Browse files
authored
test(ext/node): prevent running the same test cases twice (denoland#26812)
1 parent bfc143a commit b955d03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/node_compat/test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { magenta } from "@std/fmt/colors";
1919
import { pooledMap } from "@std/async/pool";
2020
import { dirname, fromFileUrl, join } from "@std/path";
2121
import { assertEquals, fail } from "@std/assert";
22+
import { distinct } from "@std/collections";
2223
import {
2324
config,
2425
getPathsFromTestSuites,
@@ -36,6 +37,9 @@ const testPaths = partitionParallelTestPaths(
3637
getPathsFromTestSuites(config.ignore),
3738
),
3839
);
40+
testPaths.sequential = distinct(testPaths.sequential);
41+
testPaths.parallel = distinct(testPaths.parallel);
42+
3943
const cwd = new URL(".", import.meta.url);
4044
const windowsIgnorePaths = new Set(
4145
getPathsFromTestSuites(config.windowsIgnore),

0 commit comments

Comments
 (0)