Add dependencies, pull out HTTPClient test code

This commit is contained in:
Ethan Frey
2017-02-21 22:32:17 +01:00
parent 2c75c9daf9
commit c9d36cd713
8 changed files with 174 additions and 168 deletions

21
rpc/client/main_test.go Normal file
View File

@ -0,0 +1,21 @@
package client_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)
}