Index: pkg/analyzer/test/src/task/dart_test.dart |
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart |
index 0f39004e1c77208f0eb03914aef6097e2dd86f1d..eb0efbcb5e6005bb8d7b1f1d0ba9c513319f7d72 100644 |
--- a/pkg/analyzer/test/src/task/dart_test.dart |
+++ b/pkg/analyzer/test/src/task/dart_test.dart |
@@ -2249,11 +2249,12 @@ class GenerateLintsTaskTest extends _AbstractDartTaskTest { |
void setUp() { |
super.setUp(); |
enableLints(); |
+ lintRegistry[context] = [new GenerateLintsTaskTest_TestLinter()]; |
} |
@override |
void tearDown() { |
- LintGenerator.LINTERS.clear(); |
+ lintRegistry[context] = []; |
super.tearDown(); |
} |
@@ -2264,9 +2265,6 @@ class GenerateLintsTaskTest extends _AbstractDartTaskTest { |
class a { } |
'''); |
- LintGenerator.LINTERS.clear(); |
- LintGenerator.LINTERS.add(new GenerateLintsTaskTest_TestLinter()); |
- |
LibrarySpecificUnit target = new LibrarySpecificUnit(source, source); |
computeResult(target, LINTS, matcher: isGenerateLintsTask); |
// validate |