Refactor tests for consistent error zones (#1275)

Previously the tests validated that an error Future which originates in
one zone is able to complete as an error in the other zone. Since errors
are not allowed to cross zone boundaries the future would never complete
and result in a test timeout.

Zones can indicate directly when they are in the same error zone. Using
this API means the test can fail fast instead of a waiting for a
timeout, and the API more directly expresses the intent of the test.
4 files changed
tree: c36df0bd9c4dfb27c7d89ffee7b1adea24061973
  1. pkgs/
  2. tool/
  3. .gitignore
  4. .travis.yml
  5. analysis_options.yaml
  6. CONTRIBUTING.md
  7. mono_repo.yaml
  8. README.md
README.md

Test Mono Repository

This repository contains packages for writing and running Dart tests.

test

A full featured packaged for writing and running Dart tests on various platforms, e.g. VM, Chrome, Node etc.

test_api

A minimal package for writing tests. This package is used by package:test and package:test_core.

test_core

A minimal package for writing and running tests. It also contains extensions for implementing a custom test runner. This package is used by package:test.