testutil

package
v0.0.0-...-571b78f Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFreeListener

func GetFreeListener(t *testing.T) *net.TCPListener

func GetFreePort

func GetFreePort(t *testing.T) int

func GetFreePortTest

func GetFreePortTest(t *testing.T) string

func WaitForPort

func WaitForPort(t *testing.T, address string, timeout time.Duration)

WaitForPort tries to connect to the specified address until timeout. If the port is not open before the timeout, the test fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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