mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fixes https://github.com/flutter/flutter/issues/140481 Before this fix, if all tests are skipped, the `onDone` callback never fires, which means the recieve port never closes, which means the process just hangs indefinitely (and the success message is never printed).
package:litetest
This is a wrapper around package:async_helper from the Dart SDK source repo
at //pkg/async_helper that works in the environment of flutter_tester.
This wrapper is needed to ensure that all tests run to completion before the
process exits. This is accomplished by opening a ReceivePort for each test,
which is only closed when the test finishes running.
Limitations
This package is intended only for use in the flutter/engine repo by unit
tests that run on flutter_tester. Even though the API resembles the API
provided by package:test, it has all the same limitations that
package:async_helper has.