Skip to content
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

refactor(identify): bring tests up to workspace standard #3851

Merged
merged 20 commits into from
May 8, 2023

Conversation

thomaseizinger
Copy link
Contributor

@thomaseizinger thomaseizinger commented Apr 28, 2023

Description

This patch refactors the identify tests to use libp2p-swarm-test. This allows us to delete quite a bit of code and makes several dev-dependencies obsolete.

The correct_transfer test is made obsolete by more precise assertions in the periodic_identify test. This allows us to remove the dependency on the upgrade::{apply_inbound,apply_outbound} functions.

Finally, we also fix a bug where the reported listen addresses to the other node could contain duplicates.

Related: #3748.

Notes & open questions

Patch-by-patch review is recommended.

We could split this into multiple PRs, I am not yet sure it is worth it.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@mergify

This comment was marked as resolved.

@mergify

This comment was marked as resolved.

@mergify
Copy link
Contributor

mergify bot commented May 4, 2023

This pull request has merge conflicts. Could you please resolve them @thomaseizinger? 🙏

mxinden
mxinden previously approved these changes May 4, 2023
@mxinden mxinden added the send-it label May 4, 2023
@mergify mergify bot merged commit fa4adc8 into master May 8, 2023
@mergify mergify bot deleted the refactor/better-identify-tests branch May 8, 2023 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants