mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-27 06:13:07 +00:00
docs: clarify unit test clock rule (#47604)
This commit is contained in:
parent
e78f7b4602
commit
3f415cb145
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
|||
# tests/unit
|
||||
|
||||
In-process. No network, clock or subprocess
|
||||
In-process. No network or subprocess
|
||||
|
||||
Unit tests must not depend on the current time or execution speed. Use fixed timestamps for fixtures
|
||||
and controlled clocks for time-dependent behavior. Incidental clock reads inside production code are allowed
|
||||
|
||||
## What good looks like
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue