diff --git a/screen_locker/tests/_gatelock_fixtures.py b/screen_locker/tests/_gatelock_fixtures.py index f30ab17..ff47445 100644 --- a/screen_locker/tests/_gatelock_fixtures.py +++ b/screen_locker/tests/_gatelock_fixtures.py @@ -54,8 +54,13 @@ def _hermetic_gatelock( The runtime dir is redirected as well, so a test cannot reach the real ``$XDG_RUNTIME_DIR`` and stand a *production* locker down through the arbiter. + + The queue's startup grace is zeroed too: ``wait_for_turn`` sleeps it for + real before its first look, which put 1.5 s on every test that builds a + locker and the suite far past the 60 s action cap. """ monkeypatch.setenv("GATELOCK_RUNTIME_DIR", str(tmp_path / "gatelock-runtime")) + monkeypatch.setattr("gatelock._queue.STARTUP_GRACE_SECONDS", 0.0) with ( patch("gatelock._surfaces.tk.Toplevel", side_effect=_make_toplevel), patch("gatelock._outputs.RandrBackend.create", return_value=None),