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

Daemon and DHT Tests #79

Closed
wants to merge 8 commits into from
Closed

Daemon and DHT Tests #79

wants to merge 8 commits into from

Conversation

llSourcell
Copy link
Contributor

  1. Created Daemon_Test.go and testing the listener
  2. 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()
Copy link
Contributor

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

@llSourcell llSourcell changed the title add test for DHT package #59 Daemon, DHT, and IPFSNode Tests Sep 16, 2014
@llSourcell
Copy link
Contributor Author

@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,
Copy link
Member

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

Copy link
Contributor Author

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

@llSourcell llSourcell changed the title Daemon, DHT, and IPFSNode Tests Daemon and DHT Tests Sep 17, 2014
@llSourcell
Copy link
Contributor Author

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

@llSourcell llSourcell closed this Sep 18, 2014
@aschmahmann aschmahmann mentioned this pull request Sep 22, 2020
72 tasks
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants