Revert "Revert "Roll engine to fed2ea458ed49088d33eddabc546ba56d600c717 (includes dart roll) again (#19277)" (#19295)" (#19322)
This reverts commit cc122f1672.
This commit is contained in:
committed by
GitHub
parent
e22f99743b
commit
7ebf2728dc
@@ -111,7 +111,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: 10);
|
||||
if (new DateTime.now().difference(started) > connectionTimeout) {
|
||||
throw new TimeoutException(
|
||||
'Failed to connect to the task runner process',
|
||||
|
||||
@@ -362,7 +362,7 @@ Future<String> findJavaHome() async {
|
||||
return path.dirname(path.dirname(javaBinary));
|
||||
}
|
||||
|
||||
Future<dynamic> inDirectory(dynamic directory, Future<dynamic> action()) async {
|
||||
Future<T> inDirectory<T>(dynamic directory, Future<T> action()) async {
|
||||
final String previousCwd = cwd;
|
||||
try {
|
||||
cd(directory);
|
||||
|
||||
@@ -50,12 +50,13 @@ class GalleryTransitionTest {
|
||||
|
||||
// Route paths contains slashes, which Firebase doesn't accept in keys, so we
|
||||
// remove them.
|
||||
final Map<String, List<int>> original = json.decode(file(
|
||||
'${galleryDirectory.path}/build/transition_durations.timeline.json')
|
||||
.readAsStringSync());
|
||||
final Map<String, dynamic> original = Map<String, dynamic>.from(
|
||||
json.decode(
|
||||
file('${galleryDirectory.path}/build/transition_durations.timeline.json').readAsStringSync()
|
||||
));
|
||||
final Map<String, List<int>> transitions = <String, List<int>>{};
|
||||
for (String key in original.keys) {
|
||||
transitions[key.replaceAll('/', '')] = original[key];
|
||||
transitions[key.replaceAll('/', '')] = List<int>.from(original[key]);
|
||||
}
|
||||
|
||||
final Map<String, dynamic> summary = json.decode(file('${galleryDirectory.path}/build/transitions.timeline_summary.json').readAsStringSync());
|
||||
|
||||
@@ -145,7 +145,7 @@ Future<Map<String, double>> _readJsonResults(Process process) {
|
||||
// ignore: deprecated_member_use
|
||||
process.kill(ProcessSignal.SIGINT); // flutter run doesn't quit automatically
|
||||
try {
|
||||
completer.complete(json.decode(jsonOutput));
|
||||
completer.complete(new Map<String, double>.from(json.decode(jsonOutput)));
|
||||
} catch (ex) {
|
||||
completer.completeError('Decoding JSON failed ($ex). JSON string was: $jsonOutput');
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ class Upload {
|
||||
|
||||
List<int> largeImage;
|
||||
List<int> smallImage;
|
||||
bool largeImageSaved;
|
||||
bool largeImageSaved = false;
|
||||
int retryCount = 0;
|
||||
bool isComplete = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user