Avoid iOS local networking dialog in integration tests (#75163)

This commit is contained in:
Jenn Magder
2021-02-01 13:33:25 -08:00
committed by GitHub
parent 80372f1b71
commit 91aad2bb06
7 changed files with 10 additions and 5 deletions

View File

@@ -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>[];

View File

@@ -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(

View File

@@ -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)

View File

@@ -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)