mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
It's possible (but unlikely) that two DDS instances can try and start at the same time (e.g., a "flutter run" is initiated while an existing "flutter attach" is waiting for a target to attach to). This can lead to DDS failing to initialize for one of the processes when the VM service disconnects it after the other process successfully invokes the "_yieldControlToDDS" RPC. This change adds some retry logic to avoid crashing in this scenario. Fixes https://github.com/flutter/flutter/issues/169265
This directory contains tests for specific flutter commands.
Tests that are self-contained unit tests should go in hermetic/.
Tests that are more end-to-end, e.g. that involve actually running
subprocesses, should go in permeable/.
The ../../tool/coverage_tool.dart script (which is used to collect
coverage for the tool) runs only the tests in the hermetic directory
when collecting coverage.