Documentation
¶
Overview ¶
Package clocktest lets tests wait on the cached, second-granularity clock that fiber's memory storages and rate-limit windows are measured against.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SleepPast ¶
SleepPast waits out ttl in wall time and then blocks until utils.Timestamp() has advanced by ttl truncated to whole seconds, the granularity the storages compare expiry against.
Expiry is compared against that cached timestamp, and the goroutine refreshing it once per second can be scheduled well over a second late on a loaded machine, so a wall-clock sleep alone leaves entries live past their TTL often enough to turn CI red.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.