Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
6bb2018a
Unverified
Commit
6bb2018a
authored
Sep 15, 2022
by
Christopher Fujino
Committed by
GitHub
Sep 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] reduce doctor timeout to debug 111686 (#111687)
parent
af8271b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
doctor.dart
packages/flutter_tools/lib/src/doctor.dart
+3
-1
doctor_test.dart
...utter_tools/test/commands.shard/hermetic/doctor_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/doctor.dart
View file @
6bb2018a
...
@@ -345,7 +345,9 @@ class Doctor {
...
@@ -345,7 +345,9 @@ class Doctor {
/// Maximum allowed duration for an entire validator to take.
/// Maximum allowed duration for an entire validator to take.
///
///
/// This should only ever be reached if a process is stuck.
/// 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.
/// Print information about the state of installed tooling.
///
///
...
...
packages/flutter_tools/test/commands.shard/hermetic/doctor_test.dart
View file @
6bb2018a
...
@@ -354,7 +354,7 @@ void main() {
...
@@ -354,7 +354,7 @@ void main() {
FakeAsync
().
run
<
void
>((
FakeAsync
time
)
{
FakeAsync
().
run
<
void
>((
FakeAsync
time
)
{
final
Doctor
doctor
=
FakeAsyncStuckDoctor
(
logger
);
final
Doctor
doctor
=
FakeAsyncStuckDoctor
(
logger
);
doctor
.
diagnose
(
verbose:
false
);
doctor
.
diagnose
(
verbose:
false
);
time
.
elapse
(
Doctor
.
doctorDuration
+
const
Duration
(
seconds:
1
));
time
.
elapse
(
const
Duration
(
minutes:
5
));
time
.
flushMicrotasks
();
time
.
flushMicrotasks
();
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment