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
58397108
Unverified
Commit
58397108
authored
Nov 11, 2018
by
Jonah Williams
Committed by
GitHub
Nov 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Throw a better error when old test versions are loaded. (#24217)
parent
a871d591
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
flutter_platform.dart
packages/flutter_tools/lib/src/test/flutter_platform.dart
+18
-3
No files found.
packages/flutter_tools/lib/src/test/flutter_platform.dart
View file @
58397108
...
...
@@ -414,10 +414,25 @@ class _FlutterPlatform extends PlatformPlugin {
)
async
{
// loadChannel may throw an exception. That's fine; it will cause the
// LoadSuite to emit an error, which will be presented to the user.
final
StreamChannel
<
dynamic
>
channel
=
loadChannel
(
path
,
platform
);
final
RunnerSuiteController
controller
=
deserializeSuite
(
path
,
platform
,
// Except for the Declarer error, which is a specific test incompatibility
// error we need to catch.
try
{
final
StreamChannel
<
dynamic
>
channel
=
loadChannel
(
path
,
platform
);
final
RunnerSuiteController
controller
=
deserializeSuite
(
path
,
platform
,
suiteConfig
,
const
PluginEnvironment
(),
channel
,
message
);
return
await
controller
.
suite
;
return
await
controller
.
suite
;
}
catch
(
err
)
{
/// Rethrow a less confusing error if it is a test incompatibility.
if
(
err
.
toString
().
contains
(
'type
\'
Declarer
\'
is not a subtype of type
\'
Declarer
\'
'
))
{
throw
UnsupportedError
(
'Package incompatibility between flutter and test packages:
\n
'
' * flutter is incompatible with test <1.4.0.
\n
'
' * flutter is incompatible with mockito <4.0.0
\n
'
'To fix this error, update test to at least
\'
^1.4.0
\'
and mockito to at least
\'
^4.0.0
\'\n
'
);
}
// Guess it was a different error.
rethrow
;
}
}
@override
...
...
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