Skip to content

Harden TCPPeer tests, fix flakiness - #5410

Merged
marta-lokhova merged 1 commit into
stellar:masterfrom
marta-lokhova:tcpPeerFlakyTest
Aug 11, 2026
Merged

marta-lokhova merged 1 commit into
stellar:masterfrom
marta-lokhova:tcpPeerFlakyTest

Conversation

@marta-lokhova

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings August 10, 2026 21:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Hardens TCP peer tests by replacing fixed delays with state-based waits.

Changes:

  • Adds reusable peer authentication/disconnection helpers.
  • Updates TCP peer tests to use deterministic waits.
  • Adds a dedicated [tcppeer] test tag.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/overlay/test/TCPPeerTests.cpp Uses state-based waits and adds test tags.
src/overlay/test/OverlayTestUtils.h Declares new TCP peer test helpers.
src/overlay/test/OverlayTestUtils.cpp Implements peer lookup and wait helpers.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@marta-lokhova
marta-lokhova added this pull request to the merge queue Aug 11, 2026
Merged via the queue into stellar:master with commit f951722 Aug 11, 2026
70 checks passed
@marta-lokhova
marta-lokhova deleted the tcpPeerFlakyTest branch August 11, 2026 21:25
pull Bot pushed a commit to DIGIIX-Ltd/stellar-core that referenced this pull request Sep 17, 2026
This change updates the `background signature verification with missing
account` test to use the new overlay test helpers that stellar#5410 introduced.

It also adds some documentation to a helper function that I found
unintuitive when implementing this.
pull Bot pushed a commit to DIGIIX-Ltd/stellar-core that referenced this pull request Sep 17, 2026
…llar#5456)

This change updates the `background signature verification with missing
account` test to use the new overlay test helpers that stellar#5410 introduced.

It also adds some documentation to a helper function that I found
unintuitive when implementing this.
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