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); |