testutil

package
v0.0.0-...-b359386 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Attempts = attempt.Strategy{
	Min:   5,
	Total: 5 * time.Second,
	Delay: 200 * time.Millisecond,
}

Functions

func BootDiscoverd

func BootDiscoverd(t TestingT, port string) (*discoverd.Client, func())

func LogOutput

func LogOutput(name string, rs ...io.Reader)

func RandomPort

func RandomPort() (string, error)

func RunDiscoverdServer

func RunDiscoverdServer(t TestingT, port string) (string, func())

func SetupDiscoverd

func SetupDiscoverd(t TestingT) (*discoverd.Client, func())

Types

type TestingT

type TestingT interface {
	Fatal(...interface{})
	Fatalf(string, ...interface{})
	Log(...interface{})
}

Jump to

Keyboard shortcuts

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