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:
Jinwoo-H
2026-09-23 00:00:59 -04:00
parent 7e58f1eaba
commit 73fde15487
@@ -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 () => {