Unverified Commit 6bb2018a authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

[flutter_tools] reduce doctor timeout to debug 111686 (#111687)

parent af8271b6
......@@ -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();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment