Skip to content

Fix race in disabled_when_principal_representative test#5008

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:fix-vote-rebroadcaster-has-principal-test
Jan 25, 2026
Merged

Fix race in disabled_when_principal_representative test#5008
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:fix-vote-rebroadcaster-has-principal-test

Conversation

@pwojcikdev
Copy link
Copy Markdown
Contributor

No description provided.

@gr0vity-dev-bot
Copy link
Copy Markdown

gr0vity-dev-bot commented Jan 24, 2026

Test Results for Commit c4e928c

Pull Request 5008: Results
Overall Status:

Test Case Results

  • 5n4pr_conf_10k_bintree: PASS (Duration: 106s)
  • 5n4pr_conf_10k_change: PASS (Duration: 201s)
  • 5n4pr_conf_change_dependant: PASS (Duration: 127s)
  • 5n4pr_conf_change_independant: PASS (Duration: 133s)
  • 5n4pr_conf_send_dependant: PASS (Duration: 125s)
  • 5n4pr_conf_send_independant: PASS (Duration: 132s)
  • 5n4pr_rocks_10k_bintree: PASS (Duration: 107s)
  • 5n4pr_rocks_10k_change: FAIL (Duration: 275s)
  • Log

Last updated: 2026-01-24 20:38:52 UTC

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a race condition in the disabled_when_principal_representative test by moving the node.stats.clear() call to occur before waiting for the rebroadcaster refresh events.

Changes:

  • Moved node.stats.clear() from line 426 to line 389, positioning it before the ASSERT_TIMELY check for refresh events
  • This ensures the test waits for refresh events from a known baseline rather than potentially passing immediately due to pre-existing refresh counts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pwojcikdev pwojcikdev merged commit 1a35d48 into nanocurrency:develop Jan 25, 2026
30 of 32 checks passed
@pwojcikdev pwojcikdev deleted the fix-vote-rebroadcaster-has-principal-test branch January 26, 2026 20:41
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.

3 participants