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")