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

AddPeer fails when go test: dial attempt failed, context deadline exceeded #6

Open
mhchia opened this issue Jul 24, 2018 · 4 comments
Labels
bug Something isn't working code Specific to the code

Comments

@mhchia
Copy link
Collaborator

mhchia commented Jul 24, 2018

It happens sometimes. Need to investigate more for the cause.

$ go test -v
=== RUN   TestListeningShards
--- PASS: TestListeningShards (0.00s)
=== RUN   TestNodeListeningShards
2018/07/24 18:17:30 I am /ip4/127.0.0.1/tcp/10000/ipfs/QmS5QmciTXXnCUCyxud5eWFenUMAmvAWSDa1c7dvdXRMZ7
--- PASS: TestNodeListeningShards (0.45s)
=== RUN   TestPeerListeningShards
2018/07/24 18:17:31 I am /ip4/127.0.0.1/tcp/10000/ipfs/QmS5QmciTXXnCUCyxud5eWFenUMAmvAWSDa1c7dvdXRMZ7
--- PASS: TestPeerListeningShards (0.47s)
=== RUN   TestAddPeer
2018/07/24 18:17:31 I am /ip4/127.0.0.1/tcp/10000/ipfs/QmS5QmciTXXnCUCyxud5eWFenUMAmvAWSDa1c7dvdXRMZ7
2018/07/24 18:17:32 I am /ip4/127.0.0.1/tcp/10001/ipfs/QmexAnfpHrhMmAC5UNQVS8iBuUUgDrMbMY17Cck2gKrqeX
2018/07/24 18:17:32 <Node 0 S5Qmci>: Sending addPeer to: <peer.ID exAnfp>....
2018/07/24 18:17:37 dial attempt failed: <peer.ID S5Qmci> --> <peer.ID exAnfp> dial attempt failed: context deadline exceeded
@mhchia mhchia changed the title AddPeer fails in go test: dial attempt failed, context deadline exceeded AddPeer fails when go test: dial attempt failed, context deadline exceeded Jul 24, 2018
@mhchia mhchia added bug Something isn't working code Specific to the code labels Jul 26, 2018
@mhchia
Copy link
Collaborator Author

mhchia commented Aug 6, 2018

Note: possibly related to this issue, since it also occurs in macOS. libp2p/go-libp2p-circuit#27

@mhchia
Copy link
Collaborator Author

mhchia commented Aug 21, 2018

Related: libp2p/go-libp2p-pubsub#96

@mhchia
Copy link
Collaborator Author

mhchia commented Dec 14, 2018

@NIC619 Do we have this issue again?

@NIC619
Copy link
Collaborator

NIC619 commented Dec 15, 2018

@mhchia Occasionally, still not sure why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code Specific to the code
Projects
None yet
Development

No branches or pull requests

2 participants