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
9e87a5b0
Unverified
Commit
9e87a5b0
authored
Sep 19, 2022
by
Elias Yishak
Committed by
GitHub
Sep 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for flakey analyze test (#111895)
parent
2e3b03fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
create_test.dart
...tter_tools/test/commands.shard/permeable/create_test.dart
+16
-13
No files found.
packages/flutter_tools/test/commands.shard/permeable/create_test.dart
View file @
9e87a5b0
...
...
@@ -3131,22 +3131,25 @@ Future<void> _analyzeProject(String workingDir, { List<String> expectedFailures
}
}
final
String
stdout
=
exec
.
stdout
.
toString
();
final
List
<
String
>
errors
;
final
List
<
String
>
errors
=
<
String
>[]
;
try
{
errors
=
const
LineSplitter
().
convert
(
stdout
)
.
where
((
String
line
)
{
return
line
.
trim
().
isNotEmpty
&&
!
line
.
startsWith
(
'Analyzing'
)
&&
!
line
.
contains
(
'flutter pub get'
)
&&
!
line
.
contains
(
'Resolving dependencies'
)
&&
!
line
.
contains
(
'Got dependencies'
);
}).
map
(
lineParser
).
toList
();
// Add debugging for https://github.com/flutter/flutter/issues/111272
}
on
RangeError
catch
(
err
)
{
bool
analyzeLineFound
=
false
;
const
LineSplitter
().
convert
(
stdout
).
forEach
((
String
line
)
{
// Conditional to filter out any stdout from `pub get`
if
(!
analyzeLineFound
&&
line
.
startsWith
(
'Analyzing'
))
{
analyzeLineFound
=
true
;
return
;
}
if
(
analyzeLineFound
&&
line
.
trim
().
isNotEmpty
)
{
errors
.
add
(
lineParser
(
line
.
trim
()));
}
});
}
on
Exception
catch
(
err
)
{
fail
(
'
$err
\n\n
Complete STDOUT was:
\n\n
$stdout
'
);
}
expect
(
errors
,
unorderedEquals
(
expectedFailures
));
expect
(
errors
,
unorderedEquals
(
expectedFailures
),
reason:
'Failed with stdout:
\n\n
$stdout
'
);
}
Future
<
void
>
_getPackages
(
Directory
workingDir
)
async
{
...
...
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