testutil

package
v0.0.0-...-64299d5 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WhenZkHasSession

func WhenZkHasSession(zkEvents <-chan zk.Event, fn func())

func WithTestZkCluster

func WithTestZkCluster(t *testing.T, size int, fn func(zkServers []string))

func WithZk

func WithZk(t *testing.T, size int, defaultServer string, fn func(zkServers []string))

WithZk allows for a default ZooKeeper address to be specified, and if the port is reachable that connection info will be used. Otherwise a full test cluster is launched (NB: this can take 6+ seconds).

Types

This section is empty.

Jump to

Keyboard shortcuts

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