rpctest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

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

GetConfig returns a config for the test cases as a singleton

func GetGRPCClient

func GetGRPCClient() core_grpc.BroadcastAPIClient

func NewAphelion

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

NewAphelion creates a new aphelion server and sleeps forever

func RecreateConfig

func RecreateConfig(o *Options)

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

func StartAphelion

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

StartAphelion starts a test aphelion server in a go routine and returns when it is initialized

func StopAphelion

func StopAphelion(node *nm.Node)

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

func SuppressStdout

func SuppressStdout(o *Options)

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

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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