mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-03 00:21:20 +00:00
22 lines
439 B
Go
22 lines
439 B
Go
|
package localclient_test
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"testing"
|
||
|
|
||
|
meapp "github.com/tendermint/merkleeyes/app"
|
||
|
rpctest "github.com/tendermint/tendermint/rpc/test"
|
||
|
)
|
||
|
|
||
|
func TestMain(m *testing.M) {
|
||
|
// start a tendermint node (and merkleeyes) in the background to test against
|
||
|
app := meapp.NewMerkleEyesApp("", 100)
|
||
|
node := rpctest.StartTendermint(app)
|
||
|
code := m.Run()
|
||
|
|
||
|
// and shut down proper at the end
|
||
|
node.Stop()
|
||
|
node.Wait()
|
||
|
os.Exit(code)
|
||
|
}
|