We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in TestRemovePendingConnection
TestRemovePendingConnection
btcd/connmgr/connmanager_test.go
Lines 466 to 470 in 3e2d846
The comment says that it should read a cr.State() of ConnFailing but it gives a fatal when it is not ConnCanceled ie ConnFailing.
cr.State()
ConnFailing
ConnCanceled
The comment is stale as the test was added here 548c0f4#diff-ed803b6cfd814b3d3d6846a89c2bedd39bd560d7a782b9fb1da42560451dd0a0
and it was changed to check for ConnCanceled here b26daff#diff-ed803b6cfd814b3d3d6846a89c2bedd39bd560d7a782b9fb1da42560451dd0a but the comment was not changed
Changing the comment to
// Now examine the status of the connection request, it should read a // status of ConnCanceled.
should resolve the confusion
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
in
TestRemovePendingConnection
btcd/connmgr/connmanager_test.go
Lines 466 to 470 in 3e2d846
The comment says that it should read a
cr.State()
ofConnFailing
but it gives a fatal when it is notConnCanceled
ieConnFailing
.The comment is stale as the test was added here
548c0f4#diff-ed803b6cfd814b3d3d6846a89c2bedd39bd560d7a782b9fb1da42560451dd0a0
and it was changed to check for
ConnCanceled
hereb26daff#diff-ed803b6cfd814b3d3d6846a89c2bedd39bd560d7a782b9fb1da42560451dd0a
but the comment was not changed
Solution
Changing the comment to
should resolve the confusion
The text was updated successfully, but these errors were encountered: