This commit is contained in:
Ethan Frey
2017-02-22 22:52:16 +01:00
parent 42a9b847ec
commit cd9ee9d84b
4 changed files with 15 additions and 24 deletions

View File

@ -18,12 +18,15 @@ import (
"testing"
"github.com/tendermint/abci/example/dummy"
nm "github.com/tendermint/tendermint/node"
)
var node *nm.Node
func TestMain(m *testing.M) {
// start a tendermint node (and merkleeyes) in the background to test against
app := dummy.NewDummyApplication()
node := StartTendermint(app)
node = StartTendermint(app)
code := m.Run()
// and shut down proper at the end