From 0506ed49bdbef61ccb158aaae8d9c713fc660c0a Mon Sep 17 00:00:00 2001 From: zlareb1 Date: Fri, 20 Nov 2026 15:22:15 +0000 Subject: [PATCH] Pin lexical timing in stage-wall payload comparisons Signed-off-by: zlareb1 --- tests/unit/test_code_search_stage_wall.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_code_search_stage_wall.py b/tests/unit/test_code_search_stage_wall.py index 8321f9a6f2..0b1e4a2540 100644 --- a/tests/unit/test_code_search_stage_wall.py +++ b/tests/unit/test_code_search_stage_wall.py @@ -181,7 +181,10 @@ async def embed(self, text: str) -> list[float]: @pytest.fixture -def handler_env(monkeypatch: pytest.MonkeyPatch): +def handler_env(monkeypatch: pytest.MonkeyPatch, clock: _Clock): + from server.code.app.search import lexical + + monkeypatch.setattr(lexical, "time", clock) monkeypatch.setattr(settings, "code_intel_enabled", True) monkeypatch.setattr(settings, "code_org", "o") monkeypatch.setattr(settings, "code_namespace", "n")