@@ -58,6 +58,9 @@ class Declarer {
5858 /// The set-up functions to run once for this group.
5959 final _setUpAlls = List <Function ()>();
6060
61+ /// The default timeout for synthetic tests.
62+ final _timeout = Timeout (Duration (minutes: 12 ));
63+
6164 /// The trace for the first call to [setUpAll] .
6265 ///
6366 /// All [setUpAll] s are run in a single logical test, so they can only have
@@ -295,7 +298,8 @@ class Declarer {
295298 Test get _setUpAll {
296299 if (_setUpAlls.isEmpty) return null ;
297300
298- return LocalTest (_prefix ("(setUpAll)" ), _metadata, () {
301+ return LocalTest (_prefix ("(setUpAll)" ), _metadata.change (timeout: _timeout),
302+ () {
299303 return runZoned (() => Future .forEach (_setUpAlls, (setUp) => setUp ()),
300304 // Make the declarer visible to running scaffolds so they can add to
301305 // the declarer's `tearDownAll()` list.
@@ -309,7 +313,8 @@ class Declarer {
309313 // dynamically add tear-down code using [addTearDownAll].
310314 if (_setUpAlls.isEmpty && _tearDownAlls.isEmpty) return null ;
311315
312- return LocalTest (_prefix ("(tearDownAll)" ), _metadata, () {
316+ return LocalTest (
317+ _prefix ("(tearDownAll)" ), _metadata.change (timeout: _timeout), () {
313318 return runZoned (() {
314319 return Invoker .current.unclosable (() async {
315320 while (_tearDownAlls.isNotEmpty) {
0 commit comments