[web] remove timeout when waiting for browser to launch (#101843)

This commit is contained in:
Yegor
2022-04-13 13:38:51 -07:00
committed by GitHub
parent 08a23498c1
commit 52d17b6672

View File

@@ -698,10 +698,7 @@ class BrowserManager {
completer.completeError(error, stackTrace);
}));
return completer.future.timeout(const Duration(seconds: 30), onTimeout: () {
chrome.close();
throwToolExit('Timed out waiting for ${runtime.name} to connect.');
});
return completer.future;
}
/// Loads [_BrowserEnvironment].