mirror of
https://github.com/stablyai/orca.git
synced 2026-11-14 18:07:45 +00:00
test: stop worker-teardown console race from failing unit shards (#39813)
Vitest rejects a console-log RPC still in flight when a worker tears down, failing a shard whose tests all passed. Ignore only that rejection (the lost line belongs to a finished file and passed-only shards drop it anyway), and stop the two specs seen in CI from spawning real git and wsl.exe in fire-and-forget background work. Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -142,6 +142,9 @@ export default defineConfig({
|
||||
}
|
||||
: {}),
|
||||
projects,
|
||||
// A finished file's background log can lose the race with worker teardown; only that log line is lost.
|
||||
onUnhandledError: (error) =>
|
||||
!(error.name === 'EnvironmentTeardownError' && error.message.includes('"onUserConsoleLog"')),
|
||||
...(process.platform === 'win32' ? { maxWorkers: 4 } : {})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user