integrationtest

package
v0.0.0-...-48d2764 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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

func RunServerOnPort

func RunServerOnPort(port int) *server.Server

func RunServerWithOptions

func RunServerWithOptions(opts *server.Options) *server.Server

func StartTestNats

func StartTestNats(t *testing.T) (*server.Server, *nats.Conn)

Types

This section is empty.

Jump to

Keyboard shortcuts

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