()
| 10 | |
| 11 | |
| 12 | def test_timeout_controller_basic(): |
| 13 | |
| 14 | response_times = [0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 1.0] |
| 15 | |
| 16 | tc = TimeoutController(percentile=90, multiplier=1.0) |
| 17 | |
| 18 | [tc.add_response_time(timeout) for timeout in response_times] |
| 19 | |
| 20 | assert tc.timeout < 0.3 |
| 21 | |
| 22 | |
| 23 | def test_timeout_controller_rolling_buffer(): |
nothing calls this directly
no test coverage detected