From c971ba0db4bf2776e0baec6ae6ca86905cfbc22d Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 4 Mar 2020 13:53:01 -0800 Subject: [PATCH] Increase the timeout for the cull_opacity_perf_test to 45 seconds (#51962) Fixes https://github.com/flutter/flutter/issues/51795 --- .../macrobenchmarks/test_driver/cull_opacity_perf_test.dart | 1 + dev/benchmarks/macrobenchmarks/test_driver/util.dart | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/benchmarks/macrobenchmarks/test_driver/cull_opacity_perf_test.dart b/dev/benchmarks/macrobenchmarks/test_driver/cull_opacity_perf_test.dart index 40c8e81072..9dd0d05c09 100644 --- a/dev/benchmarks/macrobenchmarks/test_driver/cull_opacity_perf_test.dart +++ b/dev/benchmarks/macrobenchmarks/test_driver/cull_opacity_perf_test.dart @@ -12,5 +12,6 @@ void main() { kCullOpacityRouteName, pageDelay: const Duration(seconds: 1), duration: const Duration(seconds: 10), + timeout: const Duration(seconds: 45), ); } diff --git a/dev/benchmarks/macrobenchmarks/test_driver/util.dart b/dev/benchmarks/macrobenchmarks/test_driver/util.dart index 22fb2fdad2..0f5de24034 100644 --- a/dev/benchmarks/macrobenchmarks/test_driver/util.dart +++ b/dev/benchmarks/macrobenchmarks/test_driver/util.dart @@ -12,6 +12,7 @@ void macroPerfTest( String routeName, { Duration pageDelay, Duration duration = const Duration(seconds: 3), + Duration timeout = const Duration(seconds: 30), Future driverOps(FlutterDriver driver), Future setupOps(FlutterDriver driver), }) { @@ -52,5 +53,5 @@ void macroPerfTest( summary.writeTimelineToFile(testName, pretty: true); driver.close(); - }); + }, timeout: Timeout(timeout)); }