test

package
v0.0.0-...-6647289 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package test has test functions for the surveyor

Index

Constants

This section is empty.

Variables

View Source
var (
	SystemCreds = "../test/SYS.creds"
)

Test variables

Functions

func StartBasicServer

func StartBasicServer() *ns.Server

StartBasicServer runs the NATS server with a monitor port in a go routine

Types

type SuperCluster

type SuperCluster struct {
	Servers []*ns.Server
	Clients []*nats.Conn
}

SuperCluster holds client connections and NATS servers

func NewSuperCluster

func NewSuperCluster(t *testing.T) *SuperCluster

NewSuperCluster creates a small supercluster for testing, with one client per server.

func (*SuperCluster) Shutdown

func (sc *SuperCluster) Shutdown()

Shutdown shuts the supercluster down

Jump to

Keyboard shortcuts

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