Skip to content

stevenacoffman/testing-legacy

v0.1.0MIT

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

time-multiplier-over-fake-time

Use when a Go test waits on a goroutine, channel, or event and times out in CI but passes locally, or someone proposes a Clock interface. Use select with time.After scaled by a package-level timeMultiplier set larger in CI. Not when asserting the order of timed events.

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.

Pre-approved tools experimental

Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.

  • Bash
  • Read
  • Edit

Files

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