commit | dc0f8ea4d09aabb0fed16daea3d4653c8f967b02 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Wed Dec 04 08:54:38 2024 -0800 |
committer | GitHub <noreply@github.com> | Wed Dec 04 08:54:38 2024 -0800 |
tree | 5e0c0e63ca472603a66a862d104ee67e4e6f500d | |
parent | 20967732ea9dd30240a6429621ab2f82874bd9f0 [diff] |
Fix hang after multiple precompiled browser tests (#2422) Fixes #2294 Avoid creating extra unexpected BrowserManager instances by caching the future in the `_browserManagers` map without any async delay. Previously it was possible for two managers to be created if the second suite is loaded before the first suite's `compilerSupport` was resolved. This was not a problem for tests that get compiled by the test runner because the compilation would delay the second suite load until after the first suite's `compilerSupport` has resolved. It is not a problem when running without concurrency because that delays the second suite load. Add a concurrency argument to the regression test, otherwise the default is to run with concurrency 1 which works around the bug.
Welcome! package:test is the standard testing library for Dart and Flutter. If you have questions about Dart testing, please see the docs for package:test. package:test_api
and package:test_core
are implementation details and generally not user-facing.
package:checks is a relatively new library for expressing test expectations. It's a more modern version of package:matcher
and features a literate API.
Package | Description | Version |
---|---|---|
checks | A framework for checking values against expectations and building custom expectations. | |
fake_async | Fake asynchronous events such as timers and microtasks for deterministic testing. | |
matcher | Support for specifying test expectations via an extensible Matcher class. | |
test | A full featured library for writing and running Dart tests across platforms. | |
test_api | ||
test_core |