tendermint: github.com/tendermint/tendermint/rpc/test Index | Files

package rpctest

import "github.com/tendermint/tendermint/rpc/test"


Package Files


func GetConfig Uses

func GetConfig(forceCreate ...bool) *cfg.Config

GetConfig returns a config for the test cases as a singleton

func GetGRPCClient Uses

func GetGRPCClient() core_grpc.BroadcastAPIClient

func NewTendermint Uses

func NewTendermint(app abci.Application, opts *Options) *nm.Node

NewTendermint creates a new tendermint server and sleeps forever

func RecreateConfig Uses

func RecreateConfig(o *Options)

RecreateConfig instructs the RPC test to recreate the configuration each time, instead of treating it as a global singleton.

func StartTendermint Uses

func StartTendermint(app abci.Application, opts ...func(*Options)) *nm.Node

StartTendermint starts a test tendermint server in a go routine and returns when it is initialized

func StopTendermint Uses

func StopTendermint(node *nm.Node)

StopTendermint stops a test tendermint server, waits until it's stopped and cleans up test/config files.

func SuppressStdout Uses

func SuppressStdout(o *Options)

SuppressStdout is an option that tries to make sure the RPC test Tendermint node doesn't log anything to stdout.

type Options Uses

type Options struct {
    // contains filtered or unexported fields

Options helps with specifying some parameters for our RPC testing for greater control.

Package rpctest imports 17 packages (graph) and is imported by 2 packages. Updated 2020-01-20. Refresh now. Tools for package owners.