Skip to content

Commit 54d52d4

Browse files
authored
fix(vm): remove sequencer usage from createVmThreadsPool function (#4638)
1 parent ceca93d commit 54d52d4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/vitest/src/node/pools/vm-threads.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ export function createVmThreadsPool(ctx: Vitest, { execArgv, env, vmPath }: Pool
120120
}
121121
}
122122

123-
const Sequencer = ctx.config.sequence.sequencer
124-
const sequencer = new Sequencer(ctx)
125-
126123
return async (specs, invalidates) => {
127124
const configs = new Map<WorkspaceProject, ResolvedConfig>()
128125
const getConfig = (project: WorkspaceProject): ResolvedConfig => {
@@ -134,13 +131,6 @@ export function createVmThreadsPool(ctx: Vitest, { execArgv, env, vmPath }: Pool
134131
return config
135132
}
136133

137-
const { shard } = ctx.config
138-
139-
if (shard)
140-
specs = await sequencer.shard(specs)
141-
142-
specs = await sequencer.sort(specs)
143-
144134
const filesByEnv = await groupFilesByEnv(specs)
145135
const promises = Object.values(filesByEnv).flat()
146136
const results = await Promise.allSettled(promises

0 commit comments

Comments
 (0)