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

bug(dht) TestLayeredGet, TestFindPeer failing (port binding) #72

Closed
btc opened this issue Sep 14, 2014 · 2 comments
Closed

bug(dht) TestLayeredGet, TestFindPeer failing (port binding) #72

btc opened this issue Sep 14, 2014 · 2 comments
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@btc
Copy link
Contributor

btc commented Sep 14, 2014

=== RUN TestLayeredGet
Failed to listen on: &{������} [listen tcp 127.0.0.1:5000: bind: address already in use]--- FAIL: TestLayeredGet (0.25 seconds)
    dht_test.go:51: 0: listen tcp 127.0.0.1:5000: bind: address already in use

=== RUN TestFindPeer
Failed to listen on: &{������} [listen tcp 127.0.0.1:5000: bind: address already in use]--- FAIL: TestFindPeer (0.10 seconds)
    dht_test.go:51: 0: listen tcp 127.0.0.1:5000: bind: address already in use

commit: f03afaf
test log: https://s3.amazonaws.com/archive.travis-ci.org/jobs/35251330/log.txt
ci: https://travis-ci.org/jbenet/go-ipfs/jobs/35251330#L208

@btc btc added the kind/bug A bug in existing code (including security flaws) label Sep 14, 2014
@whyrusleeping
Copy link
Member

Yeap, this happens when something else causes an earlier test fails, causing cleanup to be skipped. I should probably move the cleanup calls to a defer. Might prevent this from happening.

@btc
Copy link
Contributor Author

btc commented Sep 15, 2014

You've probably already seen this. Linking to it here for posterity.

http://blog.golang.org/defer-panic-and-recover

@Stebalien Stebalien mentioned this issue May 26, 2020
77 tasks
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this issue Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

2 participants