Skip to content

Commit 6d31e85

Browse files
emaxerrnoclaude
andcommitted
db2: increase streaming test timeout from 2m to 4m for slow asnccmd reinit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2c40389 commit 6d31e85

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/impl/db2/integration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,12 @@ db2_cdc:
383383
}
384384

385385
// Wait for streaming rows (5 snapshot + 5 streaming = 10 total).
386+
// asnccmd reinit can take >2 minutes on slow machines, so allow 4 minutes.
386387
assert.Eventually(t, func() bool {
387388
receivedMu.Lock()
388389
defer receivedMu.Unlock()
389390
return len(received) >= 10
390-
}, 2*time.Minute, 500*time.Millisecond, "streaming: expected at least 10 events total")
391+
}, 4*time.Minute, 500*time.Millisecond, "streaming: expected at least 10 events total")
391392
}
392393

393394
// asncapPID returns the PID of the running asncap process for TESTDB, or "none".

0 commit comments

Comments
 (0)