Index: pkg/analysis_server/test/analysis/get_errors_test.dart |
diff --git a/pkg/analysis_server/test/analysis/get_errors_test.dart b/pkg/analysis_server/test/analysis/get_errors_test.dart |
index 65a524a4534619caa6c3ebcfbad4d45b9afc2fd6..205cbbe00ea3ba38aebca78759d0a49a68a81835 100644 |
--- a/pkg/analysis_server/test/analysis/get_errors_test.dart |
+++ b/pkg/analysis_server/test/analysis/get_errors_test.dart |
@@ -8,7 +8,6 @@ import 'dart:async'; |
import 'package:analysis_server/plugin/protocol/protocol.dart'; |
import 'package:analysis_server/src/domain_analysis.dart'; |
-import 'package:analyzer/file_system/file_system.dart'; |
import 'package:test_reflective_loader/test_reflective_loader.dart'; |
import 'package:unittest/unittest.dart'; |
@@ -100,10 +99,7 @@ main() { |
Request request = _createGetErrorsRequest(); |
server.handleRequest(request); |
// remove context, causes sending an "invalid file" error |
- { |
- Folder projectFolder = resourceProvider.getResource(projectPath); |
- server.contextManager.callbacks.removeContext(projectFolder, <String>[]); |
- } |
+ resourceProvider.deleteFolder(projectPath); |
// wait for an error response |
return serverChannel.waitForResponse(request).then((Response response) { |
expect(response.error, isNotNull); |