Increase coverage collection timeout to 2 minutes. Leafy is hitting the limits of the previous timeout of 30 seconds for tests that touch a lot of code in the app. (#13527)
This commit is contained in:
parent
9ac5963d2a
commit
951b85a12b
@ -55,9 +55,9 @@ class CoverageCollector extends TestWatcher {
|
|||||||
final Map<String, dynamic> data = await coverage
|
final Map<String, dynamic> data = await coverage
|
||||||
.collect(observatoryUri, false, false)
|
.collect(observatoryUri, false, false)
|
||||||
.timeout(
|
.timeout(
|
||||||
const Duration(seconds: 30),
|
const Duration(minutes: 2),
|
||||||
onTimeout: () {
|
onTimeout: () {
|
||||||
throw new Exception('Failed to collect coverage, it took more than thirty seconds.');
|
throw new Exception('Timed out while collecting coverage.');
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
printTrace(() {
|
printTrace(() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user