Documentation ¶
Overview ¶
Package test provides test helpers for unit and integration tests. This code is not meant to be used outside of tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
StartServer starts a server.Server with a random port and waits for the server to be up
func StartServerWithConfig ¶
StartServerWithConfig starts a server.Server with a random port and waits for the server to be up
func StopServer ¶
StopServer stops the test server and waits for the port to be down
func WaitForPortDown ¶
WaitForPortDown waits up to 5s for a port to come down and fails t if that fails
func WaitForPortUp ¶
WaitForPortUp waits up to 7s for a port to come up and fails t if that fails
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.