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 7cad9be8904f65bd223608688671e25bb1a522a7..8fbd0320c2a9335e53d259c534bd26b5f422239b 100644 |
--- a/sdk/lib/_internal/pub/test/error_group_test.dart |
+++ b/sdk/lib/_internal/pub/test/error_group_test.dart |
@@ -64,13 +64,13 @@ main() { |
"been called", () { |
completer.complete('value'); |
- completer.future.then(expectAsync1((_) { |
- expect(() => errorGroup.registerFuture(new Future.value()), |
+ expect(completer.future |
+ .then((_) => errorGroup.registerFuture(new Future.value())), |
+ throwsStateError); |
+ expect(completer.future |
+ .then((_) => errorGroup.registerStream( |
+ new StreamController(sync: true).stream)), |
throwsStateError); |
- expect(() => errorGroup.registerStream( |
- new StreamController(sync: true).stream), |
- throwsStateError); |
- })); |
}); |
test('should pass through an exception from the future if it has a ' |