From 37bc90086026dbc538f931987c6f5c79ad077e80 Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Wed, 3 Jun 2020 11:26:29 -0700 Subject: [PATCH] Revert "Don't elapse real time during IOSDevice.startApp tests (#58538)" (#58618) This reverts commit 27186c784f593af47c43efe89cd01c50af37d540. --- packages/flutter_tools/lib/src/ios/devices.dart | 2 -- .../general.shard/ios/ios_device_start_prebuilt_test.dart | 5 ----- 2 files changed, 7 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart index a381c5cf62..2d052cd34a 100644 --- a/packages/flutter_tools/lib/src/ios/devices.dart +++ b/packages/flutter_tools/lib/src/ios/devices.dart @@ -300,7 +300,6 @@ class IOSDevice extends Device { Map platformArgs, bool prebuiltApplication = false, bool ipv6 = false, - @visibleForTesting Duration fallbackPollingDelay, }) async { String packageId; @@ -417,7 +416,6 @@ class IOSDevice extends Device { portForwarder: portForwarder, protocolDiscovery: observatoryDiscovery, flutterUsage: globals.flutterUsage, - pollingDelay: fallbackPollingDelay, ); final Uri localUri = await fallbackDiscovery.discover( assumedDevicePort: assumedObservatoryPort, diff --git a/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart b/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart index 5ab6343ca0..71c859afaa 100644 --- a/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart +++ b/packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart @@ -129,7 +129,6 @@ void main() { prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: {}, - fallbackPollingDelay: Duration.zero, ); verify(globals.flutterUsage.sendEvent('ios-handshake', 'mdns-success')).called(1); @@ -174,7 +173,6 @@ void main() { prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: {}, - fallbackPollingDelay: Duration.zero, ); expect(launchResult.started, true); @@ -221,7 +219,6 @@ void main() { prebuiltApplication: true, debuggingOptions: DebuggingOptions.enabled(BuildInfo.debug), platformArgs: {}, - fallbackPollingDelay: Duration.zero, ); expect(launchResult.started, false); @@ -260,7 +257,6 @@ void main() { prebuiltApplication: true, debuggingOptions: DebuggingOptions.disabled(BuildInfo.release), platformArgs: {}, - fallbackPollingDelay: Duration.zero, ); expect(launchResult.started, true); @@ -351,7 +347,6 @@ void main() { verboseSystemLogs: true, ), platformArgs: {}, - fallbackPollingDelay: Duration.zero, ); expect(launchResult.started, true);