Unverified Commit 0d5ec37a authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #28 from ipfs/fix/dht-test

tests: fix a bunch of small test lints/issues
parents c140b0fa 29b26f5b
......@@ -130,17 +130,17 @@ func (tp *provider) TestDhtProvide(t *testing.T) {
t.Fatal(err)
}
provider := <-out
_, ok := <-out
if ok {
t.Fatal("did not expect to find any providers")
}
self0, err := apis[0].Key().Self(ctx)
if err != nil {
t.Fatal(err)
}
if provider.ID.String() != "<peer.ID >" {
t.Errorf("got wrong provider: %s != %s", provider.ID.String(), self0.ID().String())
}
err = apis[0].Dht().Provide(ctx, p)
if err != nil {
t.Fatal(err)
......@@ -151,7 +151,7 @@ func (tp *provider) TestDhtProvide(t *testing.T) {
t.Fatal(err)
}
provider = <-out
provider := <-out
if provider.ID.String() != self0.ID().String() {
t.Errorf("got wrong provider: %s != %s", provider.ID.String(), self0.ID().String())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment