Index: utils/tests/pub/error_group_test.dart |
diff --git a/utils/tests/pub/error_group_test.dart b/utils/tests/pub/error_group_test.dart |
index 13f24153c91faf905d8e3d0e5e8b48a7bc3ba7c6..3460ddd9c55deeac94f4d0fc6e8a79d7045c1eba 100644 |
--- a/utils/tests/pub/error_group_test.dart |
+++ b/utils/tests/pub/error_group_test.dart |
@@ -36,7 +36,7 @@ main() { |
expect(errorGroup.done, throwsFormatException); |
errorGroup.signalError(new FormatException()); |
- expect(() => errorGroup.registerFuture(new Future.immediate(null)), |
+ expect(() => errorGroup.registerFuture(new Future.value()), |
throwsStateError); |
expect(() => errorGroup.registerStream(new StreamController().stream), |
throwsStateError); |
@@ -63,7 +63,7 @@ main() { |
"been called", () { |
completer.complete('value'); |
- expect(() => errorGroup.registerFuture(new Future.immediate(null)), |
+ expect(() => errorGroup.registerFuture(new Future.value()), |
throwsStateError); |
expect(() => errorGroup.registerStream(new StreamController().stream), |
throwsStateError); |