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
f68c6fb8
Commit
f68c6fb8
authored
May 25, 2017
by
Hans Muller
Committed by
GitHub
May 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix package_test flakiness, init ensure terminal context entry is set (#10333)
parent
77c07871
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
logger.dart
packages/flutter_tools/lib/src/base/logger.dart
+1
-0
context.dart
packages/flutter_tools/test/src/context.dart
+2
-0
No files found.
packages/flutter_tools/lib/src/base/logger.dart
View file @
f68c6fb8
...
...
@@ -178,6 +178,7 @@ class BufferLogger extends Logger {
class
VerboseLogger
extends
Logger
{
VerboseLogger
(
this
.
parent
)
{
assert
(
terminal
!=
null
);
stopwatch
.
start
();
}
...
...
packages/flutter_tools/test/src/context.dart
View file @
f68c6fb8
...
...
@@ -12,6 +12,7 @@ import 'package:flutter_tools/src/base/logger.dart';
import
'package:flutter_tools/src/base/os.dart'
;
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/base/port_scanner.dart'
;
import
'package:flutter_tools/src/base/terminal.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/devfs.dart'
;
import
'package:flutter_tools/src/device.dart'
;
...
...
@@ -40,6 +41,7 @@ typedef void ContextInitializer(AppContext testContext);
void
_defaultInitializeContext
(
AppContext
testContext
)
{
testContext
..
putIfAbsent
(
AnsiTerminal
,
()
=>
new
AnsiTerminal
())
..
putIfAbsent
(
DeviceManager
,
()
=>
new
MockDeviceManager
())
..
putIfAbsent
(
DevFSConfig
,
()
=>
new
DevFSConfig
())
..
putIfAbsent
(
Doctor
,
()
=>
new
MockDoctor
())
...
...
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