Skip to content

Fix TestConnectionSpeedForPeerReceivedFromSeed test #3620

Open

Description

@cason

The flakiness was introduced by #3360.

The test now requires the node to dial immediately to the addresses reported by the seed node, but at the same time it should still respect the configured maximum number of outbound connections.

The first attempt of solution, #3568, increased the time the test waits until the desired number of peers is achieved. A second attempt #3597 increased it further.

Now a new failure is occurring because the peer, when queried, is dialing an address. It should not do that because it has reached the maximum number of outbound connections but at the same time the seed node disconnects from the node, opening a slot for new outbound connections. The timing with which this happens is random, rendering the test flaky.

Activity

  1. self-assigned this
    on Aug 5, 2024
  2. added
    non-deterministic
    testing
    on Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

non-deterministictesting

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions