Index: pkg/analysis_server/test/analysis_abstract.dart |
diff --git a/pkg/analysis_server/test/analysis_abstract.dart b/pkg/analysis_server/test/analysis_abstract.dart |
index 40446a9009c8e17d9be55ddea41e374a1e8f02e3..d9f89842f4d150032a9e818ffd7b90adc4d3f39d 100644 |
--- a/pkg/analysis_server/test/analysis_abstract.dart |
+++ b/pkg/analysis_server/test/analysis_abstract.dart |
@@ -124,9 +124,12 @@ class AbstractAnalysisTest { |
ExtensionManager manager = new ExtensionManager(); |
manager.processPlugins(plugins); |
// |
+ // Create an SDK in the mock file system. |
+ // |
+ new MockSdk(resourceProvider: resourceProvider); |
+ // |
// Create server |
// |
- MockSdk sdk = new MockSdk(resourceProvider: resourceProvider); |
return new AnalysisServer( |
serverChannel, |
resourceProvider, |
@@ -134,8 +137,7 @@ class AbstractAnalysisTest { |
index, |
serverPlugin, |
new AnalysisServerOptions(), |
- new DartSdkManager( |
- resourceProvider.convertPath('/'), false, (_) => sdk), |
+ new DartSdkManager(resourceProvider.convertPath('/'), false), |
InstrumentationService.NULL_SERVICE); |
} |