| Index: test/frontend/matcher/completion_test.dart
|
| diff --git a/test/frontend/matcher/completion_test.dart b/test/frontend/matcher/completion_test.dart
|
| index 344d685aae6b67d7d8de921f83e982f9872e1f19..e5c73b56f9b5919fa5082d1dcbbd0abe69cbf56b 100644
|
| --- a/test/frontend/matcher/completion_test.dart
|
| +++ b/test/frontend/matcher/completion_test.dart
|
| @@ -5,6 +5,7 @@
|
| import 'dart:async';
|
|
|
| import 'package:test/test.dart';
|
| +import 'package:test/src/backend/state.dart';
|
|
|
| import '../../utils.dart';
|
|
|
| @@ -23,8 +24,10 @@ void main() {
|
| expect(new Future.error('X'), completes);
|
| });
|
|
|
| - expectTestFailed(liveTest, startsWith(
|
| - "Expected future to complete successfully, but it failed with X"));
|
| + expect(liveTest.state.status, equals(Status.complete));
|
| + expect(liveTest.state.result, equals(Result.error));
|
| + expect(liveTest.errors, hasLength(1));
|
| + expect(liveTest.errors.first.error, equals('X'));
|
| });
|
|
|
| test("with a failure", () async {
|
| @@ -64,8 +67,10 @@ void main() {
|
| expect(new Future.error('X'), completion(isNull));
|
| });
|
|
|
| - expectTestFailed(liveTest, startsWith(
|
| - "Expected future to complete successfully, but it failed with X"));
|
| + expect(liveTest.state.status, equals(Status.complete));
|
| + expect(liveTest.state.result, equals(Result.error));
|
| + expect(liveTest.errors, hasLength(1));
|
| + expect(liveTest.errors.first.error, equals('X'));
|
| });
|
|
|
| test("with a failure", () async {
|
|
|