MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / _Clock

Class _Clock

tests/test_session_affinity.py:171–178  ·  view source on GitHub ↗

Manually-advanced monotonic clock for deterministic breaker tests.

Source from the content-addressed store, hash-verified

169
170
171class _Clock:
172 """Manually-advanced monotonic clock for deterministic breaker tests."""
173
174 def __init__(self) -> None:
175 self.now = 0.0
176
177 def __call__(self) -> float:
178 return self.now
179
180
181class _FlakyL2(_BrokenL2):

Calls

no outgoing calls