File tree 3 files changed +3
-39
lines changed
3 files changed +3
-39
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Future<void> main() async {
16
16
await testWithNewIOSSimulator ('TestHotReloadSim' , (String deviceId) async {
17
17
simulatorDeviceId = deviceId;
18
18
// This isn't actually a benchmark test, so do not use the returned `benchmarkScoreKeys` result.
19
- await createHotModeTest (deviceIdOverride: deviceId, checkAppRunningOnLocalDevice : true )();
19
+ await createHotModeTest (deviceIdOverride: deviceId)();
20
20
});
21
21
} finally {
22
22
await removeIOSimulator (simulatorDeviceId);
Original file line number Diff line number Diff line change @@ -257,25 +257,6 @@ class SimControl {
257
257
return result;
258
258
}
259
259
260
- Future <RunResult > stopApp (String deviceId, String appIdentifier) async {
261
- RunResult result;
262
- try {
263
- result = await _processUtils.run (
264
- < String > [
265
- ..._xcode.xcrunCommand (),
266
- 'simctl' ,
267
- 'terminate' ,
268
- deviceId,
269
- appIdentifier,
270
- ],
271
- throwOnError: true ,
272
- );
273
- } on ProcessException catch (exception) {
274
- throwToolExit ('Unable to terminate $appIdentifier on $deviceId :\n $exception ' );
275
- }
276
- return result;
277
- }
278
-
279
260
Future <void > takeScreenshot (String deviceId, String outputPath) async {
280
261
try {
281
262
await _processUtils.run (
@@ -555,7 +536,8 @@ class IOSSimulator extends Device {
555
536
ApplicationPackage app, {
556
537
String ? userIdentifier,
557
538
}) async {
558
- return (await _simControl.stopApp (id, app.id)).exitCode == 0 ;
539
+ // Currently we don't have a way to stop an app running on iOS.
540
+ return false ;
559
541
}
560
542
561
543
String get logFilePath {
Original file line number Diff line number Diff line change @@ -901,24 +901,6 @@ Dec 20 17:04:32 md32-11-vm1 Another App[88374]: Ignore this text'''
901
901
throwsToolExit (message: r'Unable to launch' ),
902
902
);
903
903
});
904
-
905
- testWithoutContext ('.stopApp() handles exceptions' , () async {
906
- fakeProcessManager.addCommand (const FakeCommand (
907
- command: < String > [
908
- 'xcrun' ,
909
- 'simctl' ,
910
- 'terminate' ,
911
- deviceId,
912
- appId,
913
- ],
914
- exception: ProcessException ('xcrun' , < String > []),
915
- ));
916
-
917
- expect (
918
- () async => simControl.stopApp (deviceId, appId),
919
- throwsToolExit (message: r'Unable to terminate' ),
920
- );
921
- });
922
904
});
923
905
924
906
group ('startApp' , () {
You can’t perform that action at this time.
0 commit comments