Index: pkg/scheduled_test/test/substitute_future_test.dart |
diff --git a/pkg/scheduled_test/test/substitute_future_test.dart b/pkg/scheduled_test/test/substitute_future_test.dart |
index 2b70fa2bb75d54d5d49cfcbf26262a135dba5db0..7202c86092abe9efbf0a32bf9109204e75ffdb0f 100644 |
--- a/pkg/scheduled_test/test/substitute_future_test.dart |
+++ b/pkg/scheduled_test/test/substitute_future_test.dart |
@@ -148,7 +148,7 @@ void main() { |
var completer = new Completer(); |
var future = new SubstituteFuture(completer.future); |
completer.complete('success'); |
- expect(() => future.substitute(new Future.immediate(null)), |
+ expect(() => future.substitute(new Future.value()), |
throwsStateError); |
}); |
} |