diff --git a/dev/devicelab/lib/framework/adb.dart b/dev/devicelab/lib/framework/adb.dart index a8e5d45f16..ba7dd825bf 100644 --- a/dev/devicelab/lib/framework/adb.dart +++ b/dev/devicelab/lib/framework/adb.dart @@ -636,7 +636,7 @@ class IosDeviceDiscovery implements DeviceDiscovery { Future> discoverDevices() async { final List results = json.decode(await eval( path.join(flutterDirectory.path, 'bin', 'flutter'), - ['devices', '--machine', '--suppress-analytics', '--device-timeout', '10'], + ['devices', '--machine', '--suppress-analytics', '--device-timeout', '5'], )) as List; // [ diff --git a/dev/devicelab/lib/framework/utils.dart b/dev/devicelab/lib/framework/utils.dart index a1cbcc0b31..3fa13106c5 100644 --- a/dev/devicelab/lib/framework/utils.dart +++ b/dev/devicelab/lib/framework/utils.dart @@ -434,7 +434,7 @@ Future eval( List flutterCommandArgs(String command, List options) { // Commands support the --device-timeout flag. - final List supportedDeviceTimeoutCommands = [ + final Set supportedDeviceTimeoutCommands = { 'attach', 'devices', 'drive', @@ -442,13 +442,13 @@ List flutterCommandArgs(String command, List options) { 'logs', 'run', 'screenshot', - ]; + }; return [ command, if (deviceOperatingSystem == DeviceOperatingSystem.ios && supportedDeviceTimeoutCommands.contains(command)) ...[ '--device-timeout', - '10', + '5', ], if (localEngine != null) ...['--local-engine', localEngine], if (localEngineSrcPath != null) ...['--local-engine-src-path', localEngineSrcPath], diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 39a5a2c120..12e00832e6 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -771,7 +771,7 @@ class PerfTestWithSkSL extends PerfTest { 'run', if (deviceOperatingSystem == DeviceOperatingSystem.ios) ...[ - '--device-timeout', '10', + '--device-timeout', '5', ], '--verbose', '--verbose-system-logs',