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
9f9aa46b
Unverified
Commit
9f9aa46b
authored
Aug 20, 2021
by
Ian Hickson
Committed by
GitHub
Aug 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the timeouts since tests time out after 15 minutes not 30 seconds. (#88061)
parent
d5d82650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
overall_experience_test.dart
...tools/test/integration.shard/overall_experience_test.dart
+5
-5
No files found.
packages/flutter_tools/test/integration.shard/overall_experience_test.dart
View file @
9f9aa46b
...
...
@@ -189,7 +189,7 @@ Future<ProcessTestResult> runFlutter(
List
<
Transition
>
transitions
,
{
bool
debug
=
false
,
bool
logging
=
true
,
Duration
expectedMaxDuration
=
const
Duration
(
seconds:
25
),
// must be less than test timeout of 30 second
s!
Duration
expectedMaxDuration
=
const
Duration
(
minutes:
10
),
// must be less than test timeout of 15 minute
s!
})
async
{
final
Stopwatch
clock
=
Stopwatch
()..
start
();
final
Process
process
=
await
processManager
.
start
(
...
...
@@ -271,7 +271,7 @@ Future<ProcessTestResult> runFlutter(
}
nextTransition
+=
1
;
timeout
?.
cancel
();
timeout
=
Timer
(
expectedMaxDuration
~/
5
,
processTimeout
);
timeout
=
Timer
(
expectedMaxDuration
~/
5
,
processTimeout
);
// This is not a failure timeout, just when to start logging verbosely to help debugging.
}
}
void
processStderr
(
String
line
)
{
...
...
@@ -284,11 +284,11 @@ Future<ProcessTestResult> runFlutter(
if
(
debug
)
{
processTimeout
();
}
else
{
timeout
=
Timer
(
expectedMaxDuration
~/
2
,
processTimeout
);
timeout
=
Timer
(
expectedMaxDuration
~/
2
,
processTimeout
);
// This is not a failure timeout, just when to start logging verbosely to help debugging.
}
process
.
stdout
.
transform
<
String
>(
utf8
.
decoder
).
transform
<
String
>(
const
LineSplitter
()).
listen
(
processStdout
);
process
.
stderr
.
transform
<
String
>(
utf8
.
decoder
).
transform
<
String
>(
const
LineSplitter
()).
listen
(
processStderr
);
unawaited
(
process
.
exitCode
.
timeout
(
expectedMaxDuration
,
onTimeout:
()
{
unawaited
(
process
.
exitCode
.
timeout
(
expectedMaxDuration
,
onTimeout:
()
{
// This is a failure timeout, must not be short.
print
(
'
${stamp()}
(process is not quitting, trying to send a "q" just in case that helps)'
);
print
(
'(a functional test should never reach this point)'
);
final
LogLine
inLog
=
LogLine
(
'stdin'
,
stamp
(),
'q'
);
...
...
@@ -298,7 +298,7 @@ Future<ProcessTestResult> runFlutter(
}
process
.
stdin
.
write
(
'q'
);
return
-
1
;
// discarded
}).
catchError
((
Object
error
)
{
/* ignore
the error here, it'
ll be reported on the next line */
}));
}).
catchError
((
Object
error
)
{
/* ignore
errors here, they wi
ll be reported on the next line */
}));
final
int
exitCode
=
await
process
.
exitCode
;
if
(
streamingLogs
)
{
print
(
'
${stamp()}
(process terminated with exit code
$exitCode
)'
);
...
...
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