Skip to content

test(android): emulator tests collide on fixed console ports and the AVD lock across concurrent runs #280

Closed

Description

@ElbertePlinio

Found during the post-#253 flake re-check.

Under two concurrent full suites, three tests in packages/android/test/emulator.test.ts failed:

  • "skips an auto-allocated port that another process has bound": listen EADDRINUSE 127.0.0.1:5670 (2 of 8 suite runs)
  • "retries on a fresh port when the emulator itself reports a collision": attempts ['5672'] instead of ['5670', '5672'] (2 of 8)
  • "refuses a writable start while a live emulator holds the AVD lock": expected startEmulator to reject (1 of 8)

The tests use fixed console ports from 5670 (#160 moved them there) and a shared AVD lock, so two runs on one host take each other's ports and lock. #210 is a separate race in the give-up test.

Evidence: 4 rounds of two concurrent full suites on main be2d00c after the host RTTIME fix (#253), logs in the local flake re-check artifacts.

Activity

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