Revert "Remove per-test timeouts from integration tests (#85098)" (#85133)

This reverts commit b96c3c22ce.
This commit is contained in:
Dan Field
2021-06-23 08:17:27 -07:00
committed by GitHub
parent b96c3c22ce
commit 69f2f8a18b
22 changed files with 35 additions and 18 deletions

View File

@@ -48,6 +48,7 @@ void main([List<String> args = const <String>[]]) {
..removeAll(kProfiledDemos);
await runDemos(unprofiledDemos.toList(), tester);
},
timeout: const Timeout(Duration(minutes: 5)),
semanticsEnabled: withSemantics,
);
});

View File

@@ -5,6 +5,7 @@
import 'package:integration_test/integration_test_driver.dart' as driver;
Future<void> main() => driver.integrationDriver(
timeout: const Duration(minutes: 5),
responseDataCallback: (Map<String, dynamic>? data) async {
await driver.writeResponseData(
data!['performance'] as Map<String, dynamic>,

View File

@@ -130,6 +130,7 @@ Future<void> runDemos(List<String> demos, FlutterDriver driver) async {
await driver.scrollUntilVisible(demoList, demoItem,
dyScroll: -48.0,
alignment: 0.5,
timeout: const Duration(seconds: 30),
);
for (int i = 0; i < 2; i += 1) {
@@ -217,6 +218,6 @@ void main([List<String> args = const <String>[]]) {
await runDemos(unprofiledDemos.toList(), driver);
}
});
}, timeout: const Timeout(Duration(minutes: 5)));
});
}