-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add badges, fix spello, and test unresolvable dials #68
Conversation
Doesn't work with gx.
They assume too much of the API.
They are likely to collide on ports and very verbose.
@anacrolix thank you for the follow up! Is
Not sure what this means, can you clarify? The Can explain why you think |
It's a library that @anacrolix chose to use here. We don't use it anywhere else (that I know of) and haven't discussed switching over to it. @anacrolix would you like to file an issue in go-libp2p proposing that we make it our go-to testing framework? I believer @marten-seemann prefers ginkgo/gomega. |
@petroav Your tests used explicit ports on localhost. They may be flaky when tests are executed in parallel, or multiple times. The I'm not sure @Stebalien I don't want to standardize on testing suites unless someone has an issue with something. There's too much bike-shedding, and personal preference should be allowed. |
This PR should be merged. Further additions are open to further discussion, but there's no reason not to merge this at this point. |
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.
We might want to skip the tests if SO_REUSEPORT
is not available in the host OS; currently we error (but this PR doesn't touch that).
I also think there are valuable test cases in #67 we might want to port over (although I think #67 dropped IPv6 testing?).
OK with introducing testify, but I would like us to agree on a testing toolkit to avoid random sprouting across the codebase. @anacrolix – could you open an issue on libp2p/go-libp2p to discuss?
You were asking @petroav to use it so I figured you might want to propose that it be used everywhere. I hind sight, I guess you just meant "use it here" because that's what all the other tests are doing (makes sense). |
Add badges, fix spello, and test unresolvable dials (libp2p#68)
I've picked out the parts of #67 that I'm happy with. @Stebalien is the best course of action to remove that go file if it breaks gx? @petroav I'd prefer any tests of Dial and Listen use the existing style with testify, and port zero to allow parallel tests, and
-count > 1
without weird behaviour.