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
8443f7cf
Unverified
Commit
8443f7cf
authored
May 27, 2020
by
Jonah Williams
Committed by
GitHub
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "[flutter_tools] write test to convince self of lack of timing issue (#58011)" (#58123)
This reverts commit
f77c669d
.
parent
f77c669d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
resident_runner_test.dart
...lutter_tools/test/general.shard/resident_runner_test.dart
+0
-42
No files found.
packages/flutter_tools/test/general.shard/resident_runner_test.dart
View file @
8443f7cf
...
...
@@ -1198,48 +1198,6 @@ void main() {
})
async
=>
mockVMService
,
}));
group
(
'Timing test'
,
()
{
Completer
<
MockVMService
>
completer
;
test
(
'Can connect to observatory stream after receiving done event.'
,
()
=>
testbed
.
run
(()
async
{
completer
=
Completer
<
MockVMService
>();
fakeVmServiceHost
=
FakeVmServiceHost
(
requests:
<
VmServiceExpectation
>[]);
final
MockDevice
mockDevice
=
MockDevice
();
final
MockDeviceLogReader
mockLogReader
=
MockDeviceLogReader
();
when
(
mockDevice
.
getLogReader
(
app:
anyNamed
(
'app'
))).
thenReturn
(
mockLogReader
);
final
StreamController
<
Uri
>
controller
=
StreamController
<
Uri
>();
final
TestFlutterDevice
flutterDevice
=
TestFlutterDevice
(
mockDevice
,
observatoryUris:
controller
.
stream
,
);
final
Future
<
void
>
connectResult
=
flutterDevice
.
connect
();
// First add the observatory URI to connect to.
controller
.
add
(
testUri
);
// Then close the stream.
await
controller
.
close
();
// Then complete the VM service connection.
completer
.
complete
(
mockVMService
);
await
connectResult
;
verify
(
mockLogReader
.
connectedVMService
=
mockVMService
);
},
overrides:
<
Type
,
Generator
>{
VMServiceConnector:
()
=>
(
Uri
httpUri
,
{
ReloadSources
reloadSources
,
Restart
restart
,
CompileExpression
compileExpression
,
ReloadMethod
reloadMethod
,
io
.
CompressionOptions
compression
,
Device
device
,
})
async
=>
completer
.
future
,
}));
});
test
(
'nextPlatform moves through expected platforms'
,
()
{
expect
(
nextPlatform
(
'android'
,
TestFeatureFlags
()),
'iOS'
);
expect
(
nextPlatform
(
'iOS'
,
TestFeatureFlags
()),
'fuchsia'
);
...
...
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