mirror of
https://github.com/stablyai/orca.git
synced 2026-09-25 08:02:31 +00:00
test(mobile): read the bomb inflation without depending on call order
With the fetch's sibling stop removed, a read left over from the previous test inflated into the bomb test's record first, and indexOf(601) picked it. The test now asserts some inflation stopped at 601 and none exceeded its buffer, whatever else ran. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This commit is contained in:
@@ -270,9 +270,11 @@ describe('fetchMobileWebBundle from a host whose manifest names a range grid', (
|
||||
})
|
||||
|
||||
expect(await refusalOf(fetchMobileWebBundle({ client: host.client }))).toBe('asset-overlong')
|
||||
const bombAt = inflations.outLengths.indexOf(601)
|
||||
expect(bombAt).toBeGreaterThanOrEqual(0)
|
||||
expect(inflations.resultLengths[bombAt]).toBe(601)
|
||||
// Order-free: a stray read from an earlier test may inflate into this test's record too.
|
||||
expect(inflations.resultLengths).toContain(601)
|
||||
for (const [call, resultLength] of inflations.resultLengths.entries()) {
|
||||
expect(resultLength).toBeLessThanOrEqual(inflations.outLengths[call]!)
|
||||
}
|
||||
})
|
||||
|
||||
it('refuses a range that inflates short of its window as short', async () => {
|
||||
|
||||
Reference in New Issue
Block a user