MCPcopy
hub / github.com/gorakhargosh/watchdog / test_delayed_get

Function test_delayed_get

tests/test_delayed_queue.py:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10@pytest.mark.flaky(max_runs=5, min_passes=1)
11def test_delayed_get():
12 q = DelayedQueue[str](2)
13 q.put("", delay=True)
14 inserted = time()
15 q.get()
16 elapsed = time() - inserted
17 # 2.10 instead of 2.05 for slow macOS slaves on Travis
18 assert 2.10 > elapsed > 1.99
19
20
21@pytest.mark.flaky(max_runs=5, min_passes=1)

Callers

nothing calls this directly

Calls 2

putMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…