Glossary: System Design Beyond the Basics in JavaScript
Fake clock
A function returning a time you control, so tests of time-based code, such as a token bucket, never have to wait.
Glossary: System Design Beyond the Basics in JavaScript
A function returning a time you control, so tests of time-based code, such as a token bucket, never have to wait.