mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-22 13:25:14 +00:00
Claude review on #774 flagged: - readMachineResources/readPositiveInt had no direct test coverage (FakePodmanRuntime overrides initMachine entirely, so the env parsing path was dead code in the test suite). - ensureReady and initMachine both logged 'Initializing Podman machine...' one after the other — two lines for one operation. Fixes: - Export readMachineResources and add 4 unit tests covering defaults, valid parse, non-numeric fallback, and zero/negative fallback. - Reword the initMachine log from a duplicate headline to a concise resource-allocation detail ('Allocating 4 CPUs, 4096 MB RAM') that complements the 'Initializing Podman machine...' headline emitted by ensureReady.