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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user