Clean up some flutter_tools tests and roll dependencies (#33163)

* Clean up some flutter_tools tests

* Remove arbitrary retry that happens even for fundamental errors, and generally clean up _DevFSHttpWriter.

* Update dependencies (requires fixes; see next commit)

* Fixes for new dependencies.
This commit is contained in:
Ian Hickson
2019-05-22 09:31:37 -07:00
committed by GitHub
parent cb576181e9
commit e5f81e1048
46 changed files with 189 additions and 173 deletions

View File

@@ -386,16 +386,16 @@ abstract class FlutterTestDriver {
final Future<T> future = callback();
future.timeout(timeout ?? defaultTimeout, onTimeout: () {
print(messages.toString());
_debugPrint(messages.toString());
timeoutExpired = true;
print('$task is taking longer than usual...');
_debugPrint('$task is taking longer than usual...');
return null;
});
return future.catchError((dynamic error) {
if (!timeoutExpired) {
timeoutExpired = true;
print(messages.toString());
_debugPrint(messages.toString());
}
throw error;
}).whenComplete(() => subscription.cancel());