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
75dc0336
Commit
75dc0336
authored
Apr 13, 2017
by
Yegor
Committed by
GitHub
Apr 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cancel timeout when waiting for driver extension (#9354)
parent
ecdfe658
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
driver.dart
packages/flutter_driver/lib/src/driver.dart
+7
-8
No files found.
packages/flutter_driver/lib/src/driver.dart
View file @
75dc0336
...
...
@@ -217,16 +217,15 @@ class FlutterDriver {
// option, then the VM service extension is not registered yet. Wait for
// it to be registered.
final
Future
<
dynamic
>
whenResumed
=
resumeLeniently
();
final
Future
<
dynamic
>
whenServiceExtensionReady
=
Future
.
any
<
dynamic
>(<
Future
<
dynamic
>>[
waitForServiceExtension
(),
final
Future
<
dynamic
>
whenServiceExtensionReady
=
waitForServiceExtension
();
await
whenResumed
;
try
{
_log
.
trace
(
'Waiting for service extension'
);
// We will never receive the extension event if the user does not
// register it. If that happens time out.
new
Future
<
String
>.
delayed
(
_kLongTimeout
*
2
,
()
=>
'timeout'
)
]);
await
whenResumed
;
_log
.
trace
(
'Waiting for service extension'
);
final
dynamic
signal
=
await
whenServiceExtensionReady
;
if
(
signal
==
'timeout'
)
{
await
whenServiceExtensionReady
.
timeout
(
_kLongTimeout
*
2
);
}
on
TimeoutException
catch
(
_
)
{
throw
new
DriverError
(
'Timed out waiting for Flutter Driver extension to become available. '
'Ensure your test app (often: lib/main.dart) imports '
...
...
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