tests

package
v0.17.3-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ACCOUNTS = []string{"alice", "bob", "charlie", "igor"}
)

nolint

Functions

func Clean

func Clean()

clean the directories

func ExecuteT added in v0.16.0

func ExecuteT(t *testing.T, command string) (out string)

Execute the command, return standard output and error, try a few times if requested

func GoExecuteT added in v0.16.0

func GoExecuteT(t *testing.T, command string) (cmd *exec.Cmd, pipeIn io.WriteCloser, pipeOut io.ReadCloser)

Asynchronously execute the command, return standard output and error

func InitServerForTest

func InitServerForTest(t *testing.T)

Init Basecoin Test

func StartLCDServerForTest

func StartLCDServerForTest(t *testing.T, home, chainID string) (cmd *exec.Cmd, port string)

expects TestInitBaseCoin to have been run

func StartNodeServerForTest

func StartNodeServerForTest(t *testing.T, home string) *exec.Cmd

expects TestInitBaseCoin to have been run

func StartServer

func StartServer() error

expects TestInitBaseCoin to have been run

func TestInitBasecoin

func TestInitBasecoin(t *testing.T, home string) string

Init Basecoin Test

func WaitForHeight added in v0.16.0

func WaitForHeight(height int64, port string)

Uses localhost

func WaitForRPC added in v0.16.0

func WaitForRPC(laddr string)

Wait for the RPC server to respond to /status

func WaitForStart added in v0.16.0

func WaitForStart(port string)

wait for 2 blocks. uses localhost

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL