Skip to content

stevenacoffman/testing-legacy

v0.1.0MIT

Go testing practice and legacy code: table tests, helpers, fuzzing, and safe change.

matryer-waitfor-ready

Use when a Go test starts a server in a goroutine via run() and may send requests before it is listening. Instead of sleeps or channels, add a /healthz or /readyz endpoint and a waitForReady helper that polls until 200 or context cancellation; it doubles as a production probe.

Read SKILL.md at the source

Pinned to revision e4081cbb4d29, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.