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
58301211
Unverified
Commit
58301211
authored
Jan 15, 2021
by
Jenn Magder
Committed by
GitHub
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip flaky flutter_immediately_exit test (#74055)
parent
f6156fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
flutter_immediately_exit_test.dart
...test/integration.shard/flutter_immediately_exit_test.dart
+29
-27
No files found.
packages/flutter_tools/test/integration.shard/flutter_immediately_exit_test.dart
View file @
58301211
...
...
@@ -10,34 +10,36 @@ import 'test_driver.dart';
import
'test_utils.dart'
;
void
main
(
)
{
Directory
tempDir
;
final
ProjectWithImmediateExit
_project
=
ProjectWithImmediateExit
();
FlutterRunTestDriver
_flutter
;
group
(
'immediate exit'
,
()
{
Directory
tempDir
;
final
ProjectWithImmediateExit
_project
=
ProjectWithImmediateExit
();
FlutterRunTestDriver
_flutter
;
setUp
(()
async
{
tempDir
=
createResolvedTempDirectorySync
(
'run_test.'
);
await
_project
.
setUpIn
(
tempDir
);
_flutter
=
FlutterRunTestDriver
(
tempDir
);
});
setUp
(()
async
{
tempDir
=
createResolvedTempDirectorySync
(
'run_test.'
);
await
_project
.
setUpIn
(
tempDir
);
_flutter
=
FlutterRunTestDriver
(
tempDir
);
});
tearDown
(()
async
{
tryToDelete
(
tempDir
);
});
tearDown
(()
async
{
tryToDelete
(
tempDir
);
});
testWithoutContext
(
'flutter_tools gracefully handles quick app shutdown'
,
()
async
{
try
{
await
_flutter
.
run
();
}
on
Exception
{
expect
(
_flutter
.
lastErrorInfo
,
contains
(
'Error connecting to the service protocol:'
));
expect
(
_flutter
.
lastErrorInfo
.
contains
(
// Looks for stack trace entry of the form:
// test/integration.shard/test_driver.dart 379:18 FlutterTestDriver._waitFor.<fn>
RegExp
(
r'^(.+)\/([^\/]+)\.dart \d*:\d*\s*.*\$'
)
),
isFalse
);
}
});
testWithoutContext
(
'flutter_tools gracefully handles quick app shutdown'
,
()
async
{
try
{
await
_flutter
.
run
();
}
on
Exception
{
expect
(
_flutter
.
lastErrorInfo
,
contains
(
'Error connecting to the service protocol:'
));
expect
(
_flutter
.
lastErrorInfo
.
contains
(
// Looks for stack trace entry of the form:
// test/integration.shard/test_driver.dart 379:18 FlutterTestDriver._waitFor.<fn>
RegExp
(
r'^(.+)\/([^\/]+)\.dart \d*:\d*\s*.*\$'
)
),
isFalse
);
}
});
},
skip:
platform
.
isWindows
,
// Flaky on Windows: https://github.com/flutter/flutter/issues/74052
);
}
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