Skip to content

Commit 4583df9

Browse files
committed
test(daemon): extend rollover test timeout
Generated-By: looper 0.11.8 (runner=fixer, agent=codex)
1 parent 2133fec commit 4583df9

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

apps/daemon/tests/opencode-session-resume.test.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type RunEvent = { event: string; data: unknown };
4545
const SESSION = 'ses_e2e0000resume0000';
4646
const FIRST_REPLY_SENTINEL = 'FIRST_TURN_REPLY_SENTINEL_0c7d2';
4747
const RUN_COMPLETION_TIMEOUT_MS = 30_000;
48+
const ROLLOVER_TEST_TIMEOUT_MS = 60_000;
4849

4950
describe('opencode native session resume', () => {
5051
const originalEnv = snapshotEnv();
@@ -177,7 +178,9 @@ describe('opencode native session resume', () => {
177178
expect(turn2.argv).not.toContain('-s');
178179
});
179180

180-
it('rolls over and reseeds before a resumed session reaches its model context limit', async () => {
181+
it('rolls over and reseeds before a resumed session reaches its model context limit', {
182+
timeout: ROLLOVER_TEST_TIMEOUT_MS,
183+
}, async () => {
181184
binDir = await mkdtemp(path.join(os.tmpdir(), 'od-opencode-context-rollover-bin-'));
182185
const { bin, logPath } = await writeHighContextOpencode(binDir, 'opencode-context-rollover');
183186

@@ -233,7 +236,9 @@ describe('opencode native session resume', () => {
233236
}));
234237
});
235238

236-
it('rolls over when changed stable instructions push the exact resume payload past the threshold', async () => {
239+
it('rolls over when changed stable instructions push the exact resume payload past the threshold', {
240+
timeout: ROLLOVER_TEST_TIMEOUT_MS,
241+
}, async () => {
237242
binDir = await mkdtemp(path.join(os.tmpdir(), 'od-opencode-stable-rollover-bin-'));
238243
const { bin, logPath } = await writeHighContextOpencode(
239244
binDir,
@@ -283,7 +288,9 @@ describe('opencode native session resume', () => {
283288
})).toBe(true);
284289
});
285290

286-
it('compacts to the remaining launch headroom for a low-context model', async () => {
291+
it('compacts to the remaining launch headroom for a low-context model', {
292+
timeout: ROLLOVER_TEST_TIMEOUT_MS,
293+
}, async () => {
287294
binDir = await mkdtemp(path.join(os.tmpdir(), 'od-opencode-low-context-rollover-bin-'));
288295
const { bin, logPath } = await writeHighContextOpencode(
289296
binDir,

0 commit comments

Comments
 (0)