Increase connection timeout (#13413)

This commit is contained in:
Sarah Zakarias 2017-12-07 12:07:02 +01:00 committed by GitHub
parent d1e918fa10
commit e38d48021c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ Future<VMIsolateRef> _connectToRunnerIsolate(int vmServicePort) async {
throw 'not ready yet';
return isolate;
} catch (error) {
const Duration connectionTimeout = const Duration(seconds: 2);
const Duration connectionTimeout = const Duration(seconds: 4);
if (new DateTime.now().difference(started) > connectionTimeout) {
throw new TimeoutException(
'Failed to connect to the task runner process',