tendermint/lite/client/main_test.go

26 lines
508 B
Go
Raw Normal View History

2017-10-24 12:34:36 +02:00
package client_test
import (
"os"
"testing"
2018-06-22 06:59:02 +02:00
"github.com/tendermint/tendermint/abci/example/kvstore"
2017-10-24 12:34:36 +02:00
nm "github.com/tendermint/tendermint/node"
rpctest "github.com/tendermint/tendermint/rpc/test"
)
var node *nm.Node
func TestMain(m *testing.M) {
// start a tendermint node (and merkleeyes) in the background to test against
app := kvstore.NewKVStoreApplication()
2017-10-24 12:34:36 +02:00
node = rpctest.StartTendermint(app)
code := m.Run()
// and shut down proper at the end
node.Stop()
node.Wait()
os.Exit(code)
}