You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
491 B

  1. package client_test
  2. import (
  3. "os"
  4. "testing"
  5. "github.com/tendermint/abci/example/dummy"
  6. nm "github.com/tendermint/tendermint/node"
  7. rpctest "github.com/tendermint/tendermint/rpc/test"
  8. )
  9. var node *nm.Node
  10. func TestMain(m *testing.M) {
  11. // start a tendermint node (and merkleeyes) in the background to test against
  12. app := dummy.NewDummyApplication()
  13. node = rpctest.StartTendermint(app)
  14. code := m.Run()
  15. // and shut down proper at the end
  16. node.Stop()
  17. node.Wait()
  18. os.Exit(code)
  19. }