Unverified Commit 39289b83 authored by Konstantin Scheglov's avatar Konstantin Scheglov Committed by GitHub

Update additionalTime in TestWidgetsFlutterBinding.runAsync() to 1000. (#27256)

parent 9a85fee3
...@@ -222,7 +222,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase ...@@ -222,7 +222,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
/// current timeout. See [AutomatedTestWidgetsFlutterBinding.addTime] for /// current timeout. See [AutomatedTestWidgetsFlutterBinding.addTime] for
/// details. The value is ignored by the [LiveTestWidgetsFlutterBinding]. /// details. The value is ignored by the [LiveTestWidgetsFlutterBinding].
Future<T> runAsync<T>(Future<T> callback(), { Future<T> runAsync<T>(Future<T> callback(), {
Duration additionalTime = const Duration(milliseconds: 250), Duration additionalTime = const Duration(milliseconds: 1000),
}); });
/// Artificially calls dispatchLocalesChanged on the Widget binding, /// Artificially calls dispatchLocalesChanged on the Widget binding,
...@@ -720,7 +720,7 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding { ...@@ -720,7 +720,7 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
@override @override
Future<T> runAsync<T>(Future<T> callback(), { Future<T> runAsync<T>(Future<T> callback(), {
Duration additionalTime = const Duration(milliseconds: 250), Duration additionalTime = const Duration(milliseconds: 1000),
}) { }) {
assert(additionalTime != null); assert(additionalTime != null);
assert(() { assert(() {
...@@ -1223,7 +1223,7 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding { ...@@ -1223,7 +1223,7 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
@override @override
Future<T> runAsync<T>(Future<T> callback(), { Future<T> runAsync<T>(Future<T> callback(), {
Duration additionalTime = const Duration(milliseconds: 250), Duration additionalTime = const Duration(milliseconds: 1000),
}) async { }) async {
assert(() { assert(() {
if (!_runningAsyncTasks) if (!_runningAsyncTasks)
......
...@@ -375,7 +375,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker ...@@ -375,7 +375,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
/// this method again. Attempts to do otherwise will result in a /// this method again. Attempts to do otherwise will result in a
/// [TestFailure] error being thrown. /// [TestFailure] error being thrown.
Future<T> runAsync<T>(Future<T> callback(), { Future<T> runAsync<T>(Future<T> callback(), {
Duration additionalTime = const Duration(milliseconds: 250), Duration additionalTime = const Duration(milliseconds: 1000),
}) => binding.runAsync<T>(callback, additionalTime: additionalTime); }) => binding.runAsync<T>(callback, additionalTime: additionalTime);
/// Whether there are any any transient callbacks scheduled. /// Whether there are any any transient callbacks scheduled.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment