Unverified Commit ddc9b40a authored by Victoria Ashworth's avatar Victoria Ashworth Committed by GitHub

Fix typo in function name (#136273)

Rename `removeIOSimulator` to `removeIOSSimulator`.
parent f65dd3ba
...@@ -19,7 +19,7 @@ Future<void> main() async { ...@@ -19,7 +19,7 @@ Future<void> main() async {
await createHotModeTest(deviceIdOverride: deviceId, checkAppRunningOnLocalDevice: true)(); await createHotModeTest(deviceIdOverride: deviceId, checkAppRunningOnLocalDevice: true)();
}); });
} finally { } finally {
await removeIOSimulator(simulatorDeviceId); await removeIOSSimulator(simulatorDeviceId);
} }
return TaskResult.success(null); return TaskResult.success(null);
......
...@@ -663,7 +663,7 @@ end ...@@ -663,7 +663,7 @@ end
} catch (e) { } catch (e) {
return TaskResult.failure(e.toString()); return TaskResult.failure(e.toString());
} finally { } finally {
unawaited(removeIOSimulator(simulatorDeviceId)); unawaited(removeIOSSimulator(simulatorDeviceId));
rmTree(tempDir); rmTree(tempDir);
} }
}); });
......
...@@ -24,7 +24,7 @@ Future<void> main() async { ...@@ -24,7 +24,7 @@ Future<void> main() async {
}, },
); );
} finally { } finally {
await removeIOSimulator(simulatorDeviceId); await removeIOSSimulator(simulatorDeviceId);
} }
return TaskResult.success(null); return TaskResult.success(null);
}); });
......
...@@ -50,7 +50,7 @@ Future<String?> minPhoneOSVersion(String pathToBinary) async { ...@@ -50,7 +50,7 @@ Future<String?> minPhoneOSVersion(String pathToBinary) async {
/// Creates and boots a new simulator, passes the new simulator's identifier to /// Creates and boots a new simulator, passes the new simulator's identifier to
/// `testFunction`. /// `testFunction`.
/// ///
/// Remember to call removeIOSimulator in the test teardown. /// Remember to call removeIOSSimulator in the test teardown.
Future<void> testWithNewIOSSimulator( Future<void> testWithNewIOSSimulator(
String deviceName, String deviceName,
SimulatorFunction testFunction, { SimulatorFunction testFunction, {
...@@ -110,7 +110,7 @@ Future<void> testWithNewIOSSimulator( ...@@ -110,7 +110,7 @@ Future<void> testWithNewIOSSimulator(
} }
/// Shuts down and deletes simulator with deviceId. /// Shuts down and deletes simulator with deviceId.
Future<void> removeIOSimulator(String? deviceId) async { Future<void> removeIOSSimulator(String? deviceId) async {
if (deviceId != null && deviceId != '') { if (deviceId != null && deviceId != '') {
await eval( await eval(
'xcrun', 'xcrun',
......
...@@ -278,7 +278,7 @@ public class $pluginClass: NSObject, FlutterPlugin { ...@@ -278,7 +278,7 @@ public class $pluginClass: NSObject, FlutterPlugin {
} }
}); });
} finally { } finally {
await removeIOSimulator(simulatorDeviceId); await removeIOSSimulator(simulatorDeviceId);
} }
case 'linux': case 'linux':
if (await exec( if (await exec(
......
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