mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 08:03:28 +00:00
fix(ci): clear max-lines and flaky portal readiness check
Collapse an accidental multi-line regex wrap in ssh-connection-utils that pushed counted lines to 301. Harden the latched-readiness test's ready transition so CI load can re-observe attach after MutationObserver gaps.
This commit is contained in:
+16
-6
@@ -415,12 +415,22 @@ describe('Activity portal pane switching', () => {
|
||||
expect(sawLatchedSibling).toBe(true)
|
||||
expect(statuses.at(-1)).toBe('unavailable')
|
||||
|
||||
await act(async () => {
|
||||
buildRoot('ready')
|
||||
await Promise.resolve()
|
||||
})
|
||||
expect(await flushPortalReadiness(frames)).toBe(true)
|
||||
await flushPortalFramesUntil(frames, () => statuses.at(-1) === 'ready')
|
||||
// Why: under CI load MutationObserver may miss one replaceChildren; re-apply ready DOM
|
||||
// and keep draining until attach is observed (same budget pattern as the flip loop above).
|
||||
let sawReady = false
|
||||
for (
|
||||
let attempt = 0;
|
||||
attempt < ACTIVITY_PORTAL_READINESS_MAX_FLIPS * 4 && !sawReady;
|
||||
attempt += 1
|
||||
) {
|
||||
await act(async () => {
|
||||
buildRoot('ready')
|
||||
await Promise.resolve()
|
||||
})
|
||||
expect(await flushPortalReadiness(frames)).toBe(true)
|
||||
await flushPortalFramesUntil(frames, () => statuses.at(-1) === 'ready')
|
||||
sawReady = statuses.at(-1) === 'ready'
|
||||
}
|
||||
expect(statuses.at(-1)).toBe('ready')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user