Browse Source

Fix pex reactor test

pull/1520/head
Alexander Simmerl 6 years ago
parent
commit
e11f3167ff
No known key found for this signature in database GPG Key ID: 4694E95C9CC61BDA
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      p2p/pex/pex_reactor_test.go
  2. +1
    -1
      p2p/switch_test.go

+ 1
- 1
p2p/pex/pex_reactor_test.go View File

@ -73,7 +73,7 @@ func TestPEXReactorRunning(t *testing.T) {
// create switches
for i := 0; i < N; i++ {
switches[i] = p2p.MakeSwitch(config, i, "127.0.0.1", "123.123.123", func(i int, sw *p2p.Switch) *p2p.Switch {
switches[i] = p2p.MakeSwitch(config, i, "127.0.0.2", "123.123.123", func(i int, sw *p2p.Switch) *p2p.Switch {
books[i] = NewAddrBook(filepath.Join(dir, fmt.Sprintf("addrbook%d.json", i)), false)
books[i].SetLogger(logger.With("pex", i))
sw.SetAddrBook(books[i])


+ 1
- 1
p2p/switch_test.go View File

@ -322,7 +322,7 @@ func TestSwitchReconnectsToPersistentPeer(t *testing.T) {
Config: DefaultPeerConfig(),
// Use different interface to prevent duplicate IP filter, this will break
// beyond two peers.
listenAddr: "0.0.0.0:0",
listenAddr: "127.0.0.2:0",
}
rp.Start()
defer rp.Stop()


Loading…
Cancel
Save