Skip to content

fix: flaky listLmStudio nonzero-exit integration test #22

@mforce

Description

@mforce

Problem

listLmStudio: nonzero exit integration test fails intermittently in CI (Node 20). The test asserts both ls --llm --json and ps --json appear in the argv log, but when lms exits nonzero, Promise.all rejects as soon as ls fails. The ps call (which has .catch()) may or may not have written to the log yet — it's a race condition.

Fix

Only assert that ls --llm --json was called. The ps call is best-effort by design (it has .catch() in the production code), so its presence in the argv log is non-deterministic on failure paths.

PR

#22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions