Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
discover: fix TestNodeDBSeedQuery err (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahtoo authored and Paladz committed Jan 7, 2019
1 parent 893b14f commit ec544c9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions p2p/discover/database_test.go
Expand Up @@ -219,19 +219,11 @@ func TestNodeDBSeedQuery(t *testing.T) {
for _, seed := range nodeDBSeedQueryNodes[2:] {
want[seed.node.ID] = struct{}{}
}
if len(seeds) != len(want) {
t.Errorf("seed count mismatch: have %v, want %v", len(seeds), len(want))
}
for id := range have {
if _, ok := want[id]; !ok {
t.Errorf("extra seed: %v", id)
}
}
for id := range want {
if _, ok := have[id]; !ok {
t.Errorf("missing seed: %v", id)
}
}
}

func TestNodeDBPersistency(t *testing.T) {
Expand Down

0 comments on commit ec544c9

Please sign in to comment.