mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
test(desktop): widen Testing Library async deadline to de-flake UI panels (#67849)
findBy*/waitFor default to a 1000ms deadline, which is too tight for async-heavy settings panels (radix menus + refetch chains) when the full suite runs under xdist CPU contention in CI. toolset-config-panel.test.tsx has reddened unrelated PRs multiple times with `Unable to find ...` timeouts that pass on re-run — the textbook contention flake. Bump asyncUtilTimeout to 5000ms in the shared ui setup. Success still resolves the instant the node appears; the wider deadline only absorbs a starved runner, so happy-path speed is unchanged and only genuine failures wait longer.
This commit is contained in:
parent
8eb63da470
commit
9c3ffcaae3
1 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,12 @@
|
|||
import '@testing-library/react'
|
||||
import { configure } from '@testing-library/react'
|
||||
|
||||
// React 19 + Testing Library 16: opt into the act environment so render(),
|
||||
// fireEvent(), and findBy* queries automatically flush state updates without
|
||||
// spurious "not wrapped in act(...)" warnings.
|
||||
;(globalThis as any).IS_REACT_ACT_ENVIRONMENT = true
|
||||
|
||||
// findBy*/waitFor default to a 1000ms deadline — too tight for async-heavy
|
||||
// panels (radix menus, refetch chains) when the full suite runs under xdist
|
||||
// CPU contention in CI. Success still resolves the instant the node appears;
|
||||
// the wider deadline only absorbs a starved runner, killing timing flakes.
|
||||
configure({ asyncUtilTimeout: 5000 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue