Skip to content

test(android): boot mode test can read the emulator log before the snapshot line #328

Closed

Description

@ElbertePlinio

Found in CI on PR #325 (run 38004360422), which does not touch packages/android/src/emulator.ts or its test.

packages/android/test/emulator.test.ts > "start failure diagnostics > reports the boot mode from the emulator log and honours cold boot" failed with expected 'unknown' to be 'warm'. The fake emulator writes "Loading snapshot 'default_boot'..." to its log after it starts, and the fake adb can report boot completion within a few 20 ms polls. If startEmulator reads the log before the line lands, it reports unknown.

  • Decide whether startEmulator should wait for or re-read the boot mode line, or whether only the test should make the line deterministic
  • Keep the assertions for warm and cold boot modes
  • Show the test holds under several concurrent runs

Activity

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