Commit 3e1ec617 authored by Jakub Sztandera's avatar Jakub Sztandera

Fix typo in test

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 61549792
...@@ -65,12 +65,12 @@ func setupDHTS(ctx context.Context, n int, t *testing.T) ([]ma.Multiaddr, []peer ...@@ -65,12 +65,12 @@ func setupDHTS(ctx context.Context, n int, t *testing.T) ([]ma.Multiaddr, []peer
addrs[i] = dhts[i].peerstore.Addrs(dhts[i].self)[0] addrs[i] = dhts[i].peerstore.Addrs(dhts[i].self)[0]
if _, lol := sanityAddrsMap[addrs[i].String()]; lol { if _, lol := sanityAddrsMap[addrs[i].String()]; lol {
t.Fatal("While setting up DHTs address got dumplicated.") t.Fatal("While setting up DHTs address got duplicated.")
} else { } else {
sanityAddrsMap[addrs[i].String()] = struct{}{} sanityAddrsMap[addrs[i].String()] = struct{}{}
} }
if _, lol := sanityPeersMap[peers[i].String()]; lol { if _, lol := sanityPeersMap[peers[i].String()]; lol {
t.Fatal("While setting up DHTs peerid got dumplicated.") t.Fatal("While setting up DHTs peerid got duplicated.")
} else { } else {
sanityPeersMap[peers[i].String()] = struct{}{} sanityPeersMap[peers[i].String()] = struct{}{}
} }
......
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