Browse Source

p2p: test fix

pull/644/head
Ethan Buchman 7 years ago
parent
commit
cc2b418f7f
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      p2p/pex_reactor_test.go
  2. +1
    -1
      rpc/grpc/grpc_test.go

+ 1
- 1
p2p/pex_reactor_test.go View File

@ -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)


+ 1
- 1
rpc/grpc/grpc_test.go View File

@ -13,7 +13,7 @@ import (
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {
// start a tendermint node (and merkleeyes) in the background to test against
// start a tendermint node in the background to test against
app := dummy.NewDummyApplication() app := dummy.NewDummyApplication()
node := rpctest.StartTendermint(app) node := rpctest.StartTendermint(app)
code := m.Run() code := m.Run()


Loading…
Cancel
Save