testutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() *zap.Logger

func RandomNode

func RandomNode() fuddle.Node

RandomNode returns a node with random attributes and state.

func RandomRegistryNode

func RandomRegistryNode() cluster.Node

RandomRegistryNode returns a node with random attributes and metadata.

func RandomState

func RandomState() map[string]string

func WaitForNode

func WaitForNode(registry *fuddle.Registry, node fuddle.Node) error

func WaitForNodes

func WaitForNodes(registry *fuddle.Registry, count int) ([]fuddle.Node, error)

func WaitWithTimeout

func WaitWithTimeout(ch chan interface{}, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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