Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Unified Diff: pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/socket_server_test.dart ('k') | pkg/analysis_server/test/source/test_all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart
diff --git a/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart b/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart
index aaf8a0f4a8ef860e15c657886ba3216b8653ee46..2c1d2526be79979d22f1d1bc0335df02473550e5 100644
--- a/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart
+++ b/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart
@@ -16,8 +16,10 @@ import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/sdk_io.dart';
import 'package:unittest/unittest.dart';
+import '../utils.dart';
+
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
group('CachingPubPackageMapProvider', () {
MemoryResourceProvider resProvider;
@@ -29,7 +31,9 @@ main() {
'input_files': ['/tmp/proj1/pubspec.yaml']
};
- Map result1error = {'input_files': ['/tmp/proj1/pubspec.lock']};
+ Map result1error = {
+ 'input_files': ['/tmp/proj1/pubspec.lock']
+ };
Map result2 = {
'packages': {'bar': '/tmp/proj2/packages/bar'},
@@ -66,8 +70,10 @@ main() {
}
CachingPubPackageMapProvider newPkgProvider() {
- return new CachingPubPackageMapProvider(resProvider,
- DirectoryBasedDartSdk.defaultSdk, mockRunner.runPubList,
+ return new CachingPubPackageMapProvider(
+ resProvider,
+ DirectoryBasedDartSdk.defaultSdk,
+ mockRunner.runPubList,
mockWriteFile);
}
@@ -79,7 +85,6 @@ main() {
});
group('computePackageMap', () {
-
// Assert pub list called once and results are cached in memory
test('cache memory', () {
expect(mockRunner.runCount, 0);
« no previous file with comments | « pkg/analysis_server/test/socket_server_test.dart ('k') | pkg/analysis_server/test/source/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698