MCPcopy Create free account
hub / github.com/TheMariday/marimapper / test_timeout_controller_basic

Function test_timeout_controller_basic

test/test_timeout_controller.py:12–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def 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
23def test_timeout_controller_rolling_buffer():

Callers

nothing calls this directly

Calls 2

add_response_timeMethod · 0.95
TimeoutControllerClass · 0.90

Tested by

no test coverage detected