Documentation ¶
Index ¶
- Variables
- func Clean()
- func ExecuteT(t *testing.T, command string) (out string)
- func GoExecuteT(t *testing.T, command string) (cmd *exec.Cmd, pipeIn io.WriteCloser, pipeOut io.ReadCloser)
- func InitServerForTest(t *testing.T)
- func StartLCDServerForTest(t *testing.T, home, chainID string) (cmd *exec.Cmd, port string)
- func StartNodeServerForTest(t *testing.T, home string) *exec.Cmd
- func StartServer() error
- func TestInitBasecoin(t *testing.T, home string) string
- func WaitForHeight(height int64, port string)
- func WaitForRPC(laddr string)
- func WaitForStart(port string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ACCOUNTS = []string{"alice", "bob", "charlie", "igor"}
)
nolint
Functions ¶
func ExecuteT ¶ added in v0.16.0
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 StartLCDServerForTest ¶
expects TestInitBaseCoin to have been run
func StartNodeServerForTest ¶
expects TestInitBaseCoin to have been run
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.
Click to show internal directories.
Click to hide internal directories.