Allow test beds to override defaultTestTimeout (#40806)

This commit is contained in:
Mehmet Fidanboylu
2019-09-24 16:53:40 -07:00
committed by Michael Goderbauer
parent ad745170b7
commit c19e553d64
2 changed files with 13 additions and 2 deletions

View File

@@ -839,8 +839,11 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
@override
bool get checkIntrinsicSizes => true;
/// The value of [defaultTestTimeout] can be set to `None` to enable debugging flutter tests where
/// we would not want to timeout the test. This is expected to be used by test tooling which
/// can detect debug mode.
@override
test_package.Timeout get defaultTestTimeout => const test_package.Timeout(Duration(minutes: 10));
test_package.Timeout defaultTestTimeout = const test_package.Timeout(Duration(minutes: 10));
@override
bool get inTest => _currentFakeAsync != null;