Chromium Code Reviews| Index: sdk/lib/_internal/pub/test/error_group_test.dart |
| diff --git a/sdk/lib/_internal/pub/test/error_group_test.dart b/sdk/lib/_internal/pub/test/error_group_test.dart |
| index db952c872730a8f708bbf80e2eb9592fc1d7b0bc..ff2f699dbacd75574e7b677a65c1bd600896746b 100644 |
| --- a/sdk/lib/_internal/pub/test/error_group_test.dart |
| +++ b/sdk/lib/_internal/pub/test/error_group_test.dart |
| @@ -63,10 +63,12 @@ main() { |
| "been called", () { |
| completer.complete('value'); |
| - expect(() => errorGroup.registerFuture(new Future.value()), |
| - throwsStateError); |
| - expect(() => errorGroup.registerStream(new StreamController().stream), |
| - throwsStateError); |
| + completer.future.then(expectAsync1((_) { |
|
nweiz
2013/05/07 00:18:11
As in the other CL, convert these to "expect(compl
floitsch
2013/06/13 15:52:35
done in https://codereview.chromium.org/16950010
|
| + expect(() => errorGroup.registerFuture(new Future.value()), |
| + throwsStateError); |
| + expect(() => errorGroup.registerStream(new StreamController().stream), |
| + throwsStateError); |
| + })); |
| }); |
| test('should pass through an exception from the future if it has a ' |