testing

package
v1.2.0-alpha.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdTestServer

type EtcdTestServer struct {
	etcdserver.ServerConfig
	PeerListeners, ClientListeners []net.Listener
	Client                         *goetcd.Client
	// contains filtered or unexported fields
}

EtcdTestServer encapsulates the datastructures needed to start local instance for testing

func NewEtcdTestClientServer

func NewEtcdTestClientServer(t *testing.T) *EtcdTestServer

NewEtcdTestClientServer creates a new client and server for testing

func (*EtcdTestServer) Terminate

func (m *EtcdTestServer) Terminate(t *testing.T)

Terminate will shutdown the running etcd server

Jump to

Keyboard shortcuts

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