-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(swarm): separate errors for pending inbound and outbound connection #5861
base: master
Are you sure you want to change the base?
feat(swarm): separate errors for pending inbound and outbound connection #5861
Conversation
Can someone give me few pointer about why the test could be failing: dial_back_to_not_supporting, it's when AFAIU: The test was supposed to check if we can dail back to the same host which is sending the request. |
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.
Can someone give me few pointer about why the test could be failing: dial_back_to_not_supporting, it's when
alice
andbob
is trying to connect to each other insidebootstrap().await
.AFAIU: The test was supposed to check if we can dail back to the same host which is sending the request.
Do you have some logs when running it with DEBUG
logging? Looking through the code I didn't find something obvious.
I think it's because you didn't include the obtained peer-id in case of a the PendingOutboundConnectionError
when WrongPeerId
, which resulted in the test's match statement not being fulfilled.
I tried the changes as per your suggestion, but the tests are still failing, anyways thanks @elenaf9 for the review and the pointers, will try to fix them ASAP. |
Also missing a |
Thanks 🙏, I wasn't not sure which version to bump to.
|
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.
Two last nits, rest LGTM. Thanks for the follow ups @akaladarshi!
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.
LGTM!
Description
PendingConnectionError
PendingOutboundConnectionError
andPendingInboundConnectionError
Fixes: #2767
Notes & open questions
Change checklist