-
Notifications
You must be signed in to change notification settings - Fork 235
refactor!: remove iroh-test crate #3162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
we can just use AbortOnDropHandle where needed
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3162/docs/iroh/ Last updated: 2025-02-03T15:31:39Z |
iroh/src/magicsock.rs
Outdated
@@ -3238,22 +3238,19 @@ mod tests { | |||
|
|||
// For each node, start a task which monitors its local endpoints and registers them | |||
// with the other nodes as local endpoints become known. | |||
let mut tasks = JoinSet::new(); | |||
let mut tasks = Vec::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait? What? A JoinSet
aborts all tasks on drop already. Why are we jumping through all these hoops?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bonus fun 🤣 I can go back to joinset I guess
Description
These testutils we are using, actually can be replaced through either simpler code or other crates. See the individual commits for the alternatives
Breaking Changes
iroh-test
crate is goneNotes & open questions
Change checklist