OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
893b14f
)
discover: fix TestNodeDBSeedQuery err (#1549)
author
yahtoo
<yahtoo.ma@gmail.com>
Mon, 7 Jan 2019 08:07:27 +0000
(16:07 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Mon, 7 Jan 2019 08:07:27 +0000
(16:07 +0800)
p2p/discover/database_test.go
patch
|
blob
|
history
diff --git
a/p2p/discover/database_test.go
b/p2p/discover/database_test.go
index
0e1fac6
..
e20fb51
100644
(file)
--- a/
p2p/discover/database_test.go
+++ b/
p2p/discover/database_test.go
@@
-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) {