Avoid iOS local networking dialog in integration tests (#75163)
This commit is contained in:
@@ -18,7 +18,7 @@ Future<String> runFlutterAndQuit(List<String> args, Device device) async {
|
||||
print('run: starting...');
|
||||
final Process run = await startProcess(
|
||||
path.join(flutterDirectory.path, 'bin', 'flutter'),
|
||||
<String>['run', '--suppress-analytics', ...args],
|
||||
<String>['run', '--suppress-analytics', '--no-publish-port', ...args],
|
||||
isBot: false, // we just want to test the output, not have any debugging info
|
||||
);
|
||||
final List<String> stdout = <String>[];
|
||||
|
||||
@@ -39,7 +39,7 @@ Future<TaskResult> createFlutterRunTask() async {
|
||||
final Device device = await devices.workingDevice;
|
||||
await device.unlock();
|
||||
final List<String> options = <String>[
|
||||
'-t', runTestSource.absolute.path, '-d', device.deviceId, '-v',
|
||||
'-t', runTestSource.absolute.path, '-d', device.deviceId, '-v', '--no-publish-port',
|
||||
];
|
||||
await inDirectory<void>(flutterGalleryDir, () async {
|
||||
final Process run = await startProcess(
|
||||
|
||||
@@ -36,7 +36,7 @@ void main() {
|
||||
final Process run = await startProcess(
|
||||
path.join(flutterDirectory.path, 'bin', 'flutter'),
|
||||
// --fast-start does not support routes.
|
||||
<String>['run', '--verbose', '--disable-service-auth-codes', '--no-fast-start', '-d', device.deviceId, '--route', '/smuggle-it', 'lib/route.dart'],
|
||||
<String>['run', '--verbose', '--disable-service-auth-codes', '--no-fast-start', '--no-publish-port', '-d', device.deviceId, '--route', '/smuggle-it', 'lib/route.dart'],
|
||||
);
|
||||
run.stdout
|
||||
.transform<String>(utf8.decoder)
|
||||
|
||||
@@ -26,7 +26,7 @@ void main() {
|
||||
print('run: starting...');
|
||||
final Process run = await startProcess(
|
||||
path.join(flutterDirectory.path, 'bin', 'flutter'),
|
||||
<String>['run', '--verbose', '--no-fast-start', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/main.dart'],
|
||||
<String>['run', '--verbose', '--no-fast-start', '--no-publish-port', '--disable-service-auth-codes', '-d', device.deviceId, 'lib/main.dart'],
|
||||
);
|
||||
run.stdout
|
||||
.transform<String>(utf8.decoder)
|
||||
|
||||
Reference in New Issue
Block a user