Y
Hacker News
new
|
ask
|
show
|
jobs
by
jumpingmice
2448 days ago
Using the real-time clock makes your test impossible to reproduce. Using a mock clock leads to reproducible tests. Same with calls to PRNGs: these should be injected so your test failures can be reproduced.