Skip to content

Commit b3e6551

Browse files
committed
chore(cli): restore to run snap-test parallel
1 parent 5857a0f commit b3e6551

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/tools/src/snap-test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,15 @@ const casesDir = path.resolve('snap-tests');
3737

3838
const filter = process.argv[2] ?? ''; // Optional filter to run specific test cases
3939

40-
// const tasks: Promise<void>[] = [];
40+
const tasks: Promise<void>[] = [];
4141
for (const caseName of fs.readdirSync(casesDir)) {
4242
if (caseName.startsWith('.')) continue; // Skip hidden files like .DS_Store
4343
if (caseName.includes(filter)) {
44-
// FIXME: parallel run will cause [Error: Broken pipe (os error 32)] { code: 'GenericFailure' }
45-
// tasks.push(runTestCase(caseName));
46-
await runTestCase(caseName);
44+
tasks.push(runTestCase(caseName));
4745
}
4846
}
4947

50-
// await Promise.all(tasks);
48+
await Promise.all(tasks);
5149

5250
interface Steps {
5351
ignoredPlatforms?: string[];

0 commit comments

Comments
 (0)