Skip to content

test(security): viewer bridge socket counts include connections from a local port prober #492

Open

Description

@ElbertePlinio

test/security/security-viewer-bridge.test.ts fails on a host where a local process probes new loopback listeners. Found while validating #380. It is the same cause as #480, in a different test.

"refuses VNC view-only flag false" and "maps unusable VNC/session to close code stopped" assert expect(sockets).toHaveLength(0) on the fake VNC server, and they received 2 sockets. While the test ran, ss -tnp showed an IDE process (T3 Code) holding connections to the test servers' ephemeral loopback ports. The failing tests vary between runs: 2 failed in one run and 1 in the next. CI has no such prober and stays green.

  • Count only connections the bridge makes, for example by checking the peer or by having the fake server accept a known first message
  • Check the other tests that count connections to a loopback test server

Activity

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