Skip to content

mixclient: Fix test timeouts - #3501

Merged
davecgh merged 1 commit into
decred:masterfrom
jrick:mixclient_testepochs
Aug 18, 2025
Merged

mixclient: Fix test timeouts#3501
davecgh merged 1 commit into
decred:masterfrom
jrick:mixclient_testepochs

Conversation

@jrick

@jrick jrick commented Aug 18, 2025

Copy link
Copy Markdown
Member

Tests were timing out due to mixpool checks that require KEs to not be received too early for their stated epochs. To speed tests up, the mixclient's internal epoch ticker is manually ticked by the testing code, but this was causing test runs where KE messages were being rejected by mixpool, with the tests never completing and eventually timing out.

Using the current time as the epoch whenever the internal epoch ticker is manually ticked by tests resolves the issue and allows all tests to pass.

Timeouts spotted by @jholdstock.

Tests were timing out due to mixpool checks that require KEs to not be
received too early for their stated epochs.  To speed tests up, the
mixclient's internal epoch ticker is manually ticked by the testing code, but
this was causing test runs where KE messages were being rejected by mixpool,
with the tests never completing and eventually timing out.

Using the current time as the epoch whenever the internal epoch ticker is
manually ticked by tests resolves the issue and allows all tests to pass.

Timeouts spotted by @jholdstock.
@davecgh davecgh added this to the 2.1.0 milestone Aug 18, 2025
@davecgh
davecgh merged commit 3f4ad4f into decred:master Aug 18, 2025
2 checks passed
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