-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Daemon and DHT Tests #79
Conversation
llSourcell
commented
Sep 15, 2014
- Created Daemon_Test.go and testing the listener
- A DHT test
@@ -13,8 +13,13 @@ func TestProviderManager(t *testing.T) { | |||
a := u.Key("test") | |||
p.AddProvider(a, &peer.Peer{}) | |||
resp := p.GetProviders(a) | |||
resp2 := p.GetLocal() |
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.
I would try to give some semantic significance to the names of the assigned variables.
For example: assuming GetProviders returns a []Peer
, resp and resp2 might not be as readable as localPeers and remotePeers
@whyrusleeping regarding doing some sample commands over this interface, I think as you said near the end of your comment, that those tests belong in core/commands. |
return &IpfsNode{ | ||
Config: nil, | ||
PeerMap: nil, | ||
Datastore: nil, |
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.
The Close method should shut down each of the individual subsystems in core. im not quite sure whats going on here
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.
ah k, need to convert c++ mentality to go
I am closing this pull request because because Brian said there are going to be merge conflicts with the DHT so im only going to push daemon related code in another PR |
gx: update go-testutil