Skip to content

test(desktop-linux): viewer-state stalled-connect test hangs in afterEach #480

Closed

Description

@ElbertePlinio

packages/desktop-linux/test/viewer-state.test.ts "read-only VNC connection > bounds a stalled TCP connect and rejects an absent session record" fails locally because its afterEach hook times out after 10 s.

It reproduces on main at 9015bf8 with the file run alone: 2 of 3 runs failed at a load average under 1. npx vitest run packages/desktop-linux/test/viewer-state.test.ts. CI on main is green, so the hang is intermittent.

The hook kills the test children and closes the test servers. One of those waits does not end after this test, which replaces net.connect with a bare socket.

Found while validating the branch for #459. It is not caused by that branch, which does not touch packages/desktop-linux.

  • Find which wait in the hook hangs after this test
  • Fix it so the file passes 10 runs in a row locally

Activity

  1. added
    bug
    on Oct 30, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions