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
0cd8cef8
Unverified
Commit
0cd8cef8
authored
Nov 01, 2019
by
Jonah Williams
Committed by
GitHub
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
require awaiting Testbed.run (#43952)
parent
8d5caf3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
testbed_test.dart
packages/flutter_tools/test/general.shard/testbed_test.dart
+1
-1
testbed.dart
packages/flutter_tools/test/src/testbed.dart
+1
-1
No files found.
packages/flutter_tools/test/general.shard/testbed_test.dart
View file @
0cd8cef8
...
...
@@ -77,7 +77,7 @@ void main() {
test
(
'Doesnt throw a StateError if Timer is left cleaned up'
,
()
async
{
final
Testbed
testbed
=
Testbed
();
testbed
.
run
(()
async
{
await
testbed
.
run
(()
async
{
final
Timer
timer
=
Timer
.
periodic
(
const
Duration
(
seconds:
1
),
(
Timer
timer
)
{
});
timer
.
cancel
();
});
...
...
packages/flutter_tools/test/src/testbed.dart
View file @
0cd8cef8
...
...
@@ -90,7 +90,7 @@ class Testbed {
///
/// `overrides` may be used to provide new context values for the single test
/// case or override any context values from the setup.
Future
Or
<
T
>
run
<
T
>(
FutureOr
<
T
>
Function
()
test
,
{
Map
<
Type
,
Generator
>
overrides
})
{
Future
<
T
>
run
<
T
>(
FutureOr
<
T
>
Function
()
test
,
{
Map
<
Type
,
Generator
>
overrides
})
{
final
Map
<
Type
,
Generator
>
testOverrides
=
<
Type
,
Generator
>{
...
_testbedDefaults
,
// Add the initial setUp overrides
...
...
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