integrationtest

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCaddyConf = `
{
	default_bind 127.0.0.1
	http_port 8889
	admin 127.0.0.1:2999
	nats {
		url 127.0.0.1:8369
		%s
	}
}
`
View Source
const TEST_PORT = 8369

Variables

This section is empty.

Functions

func FailOnErr

func FailOnErr(message string, err error, t *testing.T)

func NewCaddyTester

func NewCaddyTester(t *testing.T) *caddytest.Tester

NewCaddyTester creates a new tester. Relative to this method here

Types

type TestNats added in v0.7.1

type TestNats struct {
	Server     *server.Server
	ClientConn *nats.Conn
}

func StartTestNats

func StartTestNats(t *testing.T) TestNats

func (*TestNats) RestartServer added in v0.7.1

func (tn *TestNats) RestartServer(t *testing.T)

Jump to

Keyboard shortcuts

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