mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[flutter_tools] reduce doctor timeout to debug 111686 (#111687)
This commit is contained in:
parent
af8271b678
commit
6bb2018af7
@ -345,7 +345,9 @@ class Doctor {
|
||||
/// Maximum allowed duration for an entire validator to take.
|
||||
///
|
||||
/// This should only ever be reached if a process is stuck.
|
||||
static const Duration doctorDuration = Duration(minutes: 10);
|
||||
// Reduce this to under 5 minutes to diagnose:
|
||||
// https://github.com/flutter/flutter/issues/111686
|
||||
static const Duration doctorDuration = Duration(minutes: 4, seconds: 30);
|
||||
|
||||
/// Print information about the state of installed tooling.
|
||||
///
|
||||
|
||||
@ -354,7 +354,7 @@ void main() {
|
||||
FakeAsync().run<void>((FakeAsync time) {
|
||||
final Doctor doctor = FakeAsyncStuckDoctor(logger);
|
||||
doctor.diagnose(verbose: false);
|
||||
time.elapse(Doctor.doctorDuration + const Duration(seconds: 1));
|
||||
time.elapse(const Duration(minutes: 5));
|
||||
time.flushMicrotasks();
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user