Skip to content

test: expect.poll's 1 s default is too short for viewer tests on a loaded runner #402

Closed

Description

@ElbertePlinio

Problem

Several viewer and takeover tests wait on subprocess state with expect.poll and vitest's default 1 second timeout. On a loaded runner that is too short. In the release workflow dry run for 0.7.1 (run 40743359883, Lab gates), packages/cli/test/native-viewer-host.test.ts > "handles socket modes, session end, unknown events, and a clean close" failed with "Matcher did not succeed in time" while it waited for the cued fullscreen mode. 14 polls in the test suites use the default.

Acceptance criteria

  • Polls without an explicit timeout wait long enough for subprocess work on a loaded runner, while polls that pass quickly stay fast.
  • The full test suite passes.

Checklist

  • Set a default poll timeout in vitest.config.ts
  • Run the full suite and a release workflow dry run

Activity

  1. added a commit that references this issue on Oct 28, 2026
    1370535
  2. ElbertePlinio commented on Oct 28, 2026

    @ElbertePlinio
    MemberAuthor

    Seen again on PR #395 at 69dede1, CI run 40748220941, job test in bun run test:coverage: the same test, "handles socket modes, session end, unknown events, and a clean close", failed with "expected 'thumbnail' to be 'fullscreen'" after "Matcher did not succeed in time". #395 changes only Android UI tree output, so this is the runner-load timing in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions