test: bypass real polling loops in job timeout tests and adjust timeout parameter
This commit is contained in:
@@ -55,7 +55,7 @@ def test_acquire_exhausted_raises(tmp_path: Path) -> None:
|
||||
pool = make_pool(tmp_path, addresses=["10.0.0.1"])
|
||||
pool.acquire("owner-1")
|
||||
with pytest.raises(RuntimeError, match="exhausted"):
|
||||
pool.acquire("owner-2", timeout=0.1)
|
||||
pool.acquire("owner-2", timeout=0)
|
||||
|
||||
|
||||
# ── release ──────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user