|
@ -120,7 +120,7 @@ func TestPEXReactorReceive(t *testing.T) { |
|
|
dir, err := ioutil.TempDir("", "pex_reactor") |
|
|
dir, err := ioutil.TempDir("", "pex_reactor") |
|
|
require.Nil(err) |
|
|
require.Nil(err) |
|
|
defer os.RemoveAll(dir) |
|
|
defer os.RemoveAll(dir) |
|
|
book := NewAddrBook(dir+"addrbook.json", true) |
|
|
|
|
|
|
|
|
book := NewAddrBook(dir+"addrbook.json", false) |
|
|
book.SetLogger(log.TestingLogger()) |
|
|
book.SetLogger(log.TestingLogger()) |
|
|
|
|
|
|
|
|
r := NewPEXReactor(book) |
|
|
r := NewPEXReactor(book) |
|
|