Skip to content

fix: flaky deadline test in BatchTxRequester#20068

Merged
mralj merged 1 commit intonextfrom
mralj/fix/batch_tx_req_deflake
Jan 30, 2026
Merged

fix: flaky deadline test in BatchTxRequester#20068
mralj merged 1 commit intonextfrom
mralj/fix/batch_tx_req_deflake

Conversation

@mralj
Copy link
Contributor

@mralj mralj commented Jan 30, 2026

Fixes race condition in "should stop requesting when deadline is reached" test.

The test mixed a fake clock with real-time sleep(), causing flakiness in CI where the sleep could oversleep and allow extra batches to be sent before the deadline was triggered.

Fix: Advance the fake clock immediately after the first request starts to ensure deterministic behavior.

@mralj mralj enabled auto-merge January 30, 2026 09:04
fix(p2p): fix flaky deadline test in BatchTxRequester
@mralj mralj force-pushed the mralj/fix/batch_tx_req_deflake branch from 2f8f7fe to db5cc9c Compare January 30, 2026 09:17
@mralj mralj added this pull request to the merge queue Jan 30, 2026
Merged via the queue into next with commit 2702240 Jan 30, 2026
16 checks passed
@mralj mralj deleted the mralj/fix/batch_tx_req_deflake branch January 30, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants