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
/// current timeout. See [AutomatedTestWidgetsFlutterBinding.addTime] for
/// details. The value is ignored by the [LiveTestWidgetsFlutterBinding].
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,
......@@ -720,7 +720,7 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
@override
Future<T> runAsync<T>(Future<T> callback(), {
Duration additionalTime = const Duration(milliseconds: 250),
Duration additionalTime = const Duration(milliseconds: 1000),
}) {
assert(additionalTime != null);
assert(() {
......@@ -1223,7 +1223,7 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
@override
Future<T> runAsync<T>(Future<T> callback(), {
Duration additionalTime = const Duration(milliseconds: 250),
Duration additionalTime = const Duration(milliseconds: 1000),
}) async {
assert(() {
if (!_runningAsyncTasks)
......
......@@ -375,7 +375,7 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
/// this method again. Attempts to do otherwise will result in a
/// [TestFailure] error being thrown.
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);
/// 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