Skip to content

test(iroh-relay, netcheck): move tests to use local relays#2935

Merged
dignifiedquire merged 20 commits inton0-computer:mainfrom
divagant-martian:expose-and-use-local-relay-testing
Nov 18, 2024
Merged

test(iroh-relay, netcheck): move tests to use local relays#2935
dignifiedquire merged 20 commits inton0-computer:mainfrom
divagant-martian:expose-and-use-local-relay-testing

Conversation

@divagant-martian
Copy link
Contributor

@divagant-martian divagant-martian commented Nov 15, 2024

Description

Removes netcheck's dependency on staging relays, using locally served ones instead. This is necessary to move netcheck out without needing to find an appropriate place for the staging values to prevent circular dependecies

Breaking Changes

  • RelayMap now can be created with an iterator of Arcs directly.

Notes & open questions

  • a test was removed since it doesn't test properties of netcheck, it just connects to the staging relay
  • iroh-relay/src/server/testing.rs was added by mistake in the split pr, so the deletions are not really picked by rust and all new code should be considered.. well, new.

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@divagant-martian divagant-martian changed the title add helper functions in the server test(iroh-relay, netcheck): move tests to use local relays Nov 15, 2024
@divagant-martian divagant-martian marked this pull request as ready for review November 15, 2024 21:52
@divagant-martian divagant-martian requested a review from a team November 15, 2024 22:08
Copy link
Collaborator

@Arqu Arqu left a comment

Choose a reason for hiding this comment

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

👍 from my PoV a great change, less flakey and faster tests!

@dignifiedquire dignifiedquire added this pull request to the merge queue Nov 18, 2024
Merged via the queue into n0-computer:main with commit 8edaee9 Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants