Skip to content

Commit a7f8174

Browse files
committed
Update tests
Modified: • src/tests/test_concurrent_install.py (+3/-16 lines) [gitship-generated]
1 parent df2fced commit a7f8174

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

src/tests/test_concurrent_install.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -189,32 +189,19 @@ def ensure_daemon_running(interpreter_paths: list) -> bool:
189189
_is_win = sys.platform == "win32"
190190
proc = subprocess.Popen(
191191
["8pkg", "daemon", "start"],
192-
stdout=subprocess.PIPE,
193-
stderr=subprocess.PIPE,
192+
stdout=subprocess.DEVNULL,
193+
stderr=subprocess.DEVNULL,
194194
)
195195
# Poll until daemon answers or we time out.
196196
# Do NOT bail on launcher rc — on Windows the launcher exits with
197197
# rc=1 even when the daemon it spawned is still starting (detached).
198198
# The only reliable signal is the socket answering.
199-
_launcher_logged = False
200199
_came_up = False
201200
for i in range(60):
202201
time.sleep(0.5)
203202
rc = proc.poll()
204-
if rc is not None and not _launcher_logged:
205-
_launcher_logged = True
206-
try:
207-
_out = proc.stdout.read().decode("utf-8", errors="replace").strip()
208-
_err = proc.stderr.read().decode("utf-8", errors="replace").strip()
209-
except Exception:
210-
_out = _err = ""
203+
if rc is not None:
211204
safe_print(f" ℹ️ Launcher exited rc={rc} — polling socket for daemon")
212-
if _out:
213-
for ln in _out.splitlines():
214-
safe_print(f" [launcher stdout] {ln}")
215-
if _err:
216-
for ln in _err.splitlines():
217-
safe_print(f" [launcher stderr] {ln}")
218205
status = client.status()
219206
if status.get("success"):
220207
_daemon_elapsed = (time.perf_counter() - _daemon_start) * 1000

0 commit comments

Comments
 (0)