Increase connection timeout further (#13415)
This commit is contained in:
parent
e38d48021c
commit
f40a9398a5
@ -15,8 +15,11 @@ Future<Null> main() async {
|
|||||||
final Directory iosDirectory = dir(
|
final Directory iosDirectory = dir(
|
||||||
'${flutterDirectory.path}/examples/flutter_view/ios',
|
'${flutterDirectory.path}/examples/flutter_view/ios',
|
||||||
);
|
);
|
||||||
|
final Stopwatch stopwatch = new Stopwatch()..start();
|
||||||
await inDirectory(iosDirectory, () async {
|
await inDirectory(iosDirectory, () async {
|
||||||
await exec('pod', <String>['install']);
|
await exec('pod', <String>['install']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
print('pod install executed in ${stopwatch.elapsed}');
|
||||||
await task(createFlutterViewStartupTest());
|
await task(createFlutterViewStartupTest());
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ Future<VMIsolateRef> _connectToRunnerIsolate(int vmServicePort) async {
|
|||||||
throw 'not ready yet';
|
throw 'not ready yet';
|
||||||
return isolate;
|
return isolate;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const Duration connectionTimeout = const Duration(seconds: 4);
|
const Duration connectionTimeout = const Duration(seconds: 30);
|
||||||
if (new DateTime.now().difference(started) > connectionTimeout) {
|
if (new DateTime.now().difference(started) > connectionTimeout) {
|
||||||
throw new TimeoutException(
|
throw new TimeoutException(
|
||||||
'Failed to connect to the task runner process',
|
'Failed to connect to the task runner process',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user