Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test(ui): give the faked overlay host a process, as the builder now checks

rubenluetke10-beep8353afe7fdbb
diff --git a/tests/unit/ui/test_macos_ui_main_thread_gates.py b/tests/unit/ui/test_macos_ui_main_thread_gates.py
index 5c933f1813..f488e67031 100644
--- a/tests/unit/ui/test_macos_ui_main_thread_gates.py
+++ b/tests/unit/ui/test_macos_ui_main_thread_gates.py
@@ -81,11 +81,13 @@ def test_desktop_build_overlay_surface_on_macos(monkeypatch) -> None:
monkeypatch.setattr("sys.platform", "darwin")
spawned: list[float] = []
- monkeypatch.setattr(
- SubprocessBarOverlay,
- "start_in_thread",
- lambda self, timeout=3.0: spawned.append(timeout),
- )
+
+ def fake_start(self, timeout=3.0):
+ # A started host owns a process; the builder checks for it.
+ spawned.append(timeout)
+ self._proc = object()
+
+ monkeypatch.setattr(SubprocessBarOverlay, "start_in_thread", fake_start)
app = DesktopApp.__new__(DesktopApp) # bypass heavy __init__
app.cfg = SimpleNamespace(
ui=SimpleNamespace(