helpers

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainConfigWithGenesisValidatorAddresses

func ChainConfigWithGenesisValidatorAddresses() map[string]interface{}

func DefaultTestLogger

func DefaultTestLogger() log.Logger

func Eventually

func Eventually(timeout time.Duration, f func() bool) bool

func GetBlockHeight

func GetBlockHeight(getMetrics func() (map[string]interface{}, error)) (int, error)

func GetMetricsForPort

func GetMetricsForPort(httpPort int) func() (map[string]interface{}, error)

func LocalIP

func LocalIP() string

func NodeAddresses

func NodeAddresses() []string

func SkipUnlessSwarmIsEnabled

func SkipUnlessSwarmIsEnabled(t *testing.T)

func WaitForBlock

func WaitForBlock(t *testing.T, getMetrics func() (map[string]interface{}, error), targetBlockHeight int, timeout time.Duration)

Types

type HttpServer

type HttpServer interface {
	Start()
	Shutdown()
	Url() string
	Port() int
}

func CreateHttpServer

func CreateHttpServer(path string, port int, f func(writer http.ResponseWriter, request *http.Request)) HttpServer

Jump to

Keyboard shortcuts

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