Manually-advanced monotonic clock for deterministic breaker tests.
| 169 | |
| 170 | |
| 171 | class _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 | |
| 181 | class _FlakyL2(_BrokenL2): |
no outgoing calls