github.com/evdatsion/aphelion-dpos-bft@v0.32.1/rpc/client/main_test.go (about) 1 package client_test 2 3 import ( 4 "os" 5 "testing" 6 7 "github.com/evdatsion/aphelion-dpos-bft/abci/example/kvstore" 8 nm "github.com/evdatsion/aphelion-dpos-bft/node" 9 rpctest "github.com/evdatsion/aphelion-dpos-bft/rpc/test" 10 ) 11 12 var node *nm.Node 13 14 func TestMain(m *testing.M) { 15 // start a tendermint node (and kvstore) in the background to test against 16 app := kvstore.NewKVStoreApplication() 17 node = rpctest.StartTendermint(app) 18 19 code := m.Run() 20 21 // and shut down proper at the end 22 rpctest.StopTendermint(node) 23 os.Exit(code) 24 }