| Index: pkg/analysis_server/test/analysis/notification_errors_test.dart
|
| diff --git a/pkg/analysis_server/test/analysis/notification_errors_test.dart b/pkg/analysis_server/test/analysis/notification_errors_test.dart
|
| index bdbaa80375dda739711fb1e5c72592d818d0105f..e7cd3aa2ff7ff3044b4408d4709b4afa7d93d3b1 100644
|
| --- a/pkg/analysis_server/test/analysis/notification_errors_test.dart
|
| +++ b/pkg/analysis_server/test/analysis/notification_errors_test.dart
|
| @@ -83,15 +83,10 @@ linter:
|
|
|
| await waitForTasksFinished();
|
| List<Linter> lints;
|
| - if (enableNewAnalysisDriver) {
|
| - AnalysisDriver testDriver = (server.contextManager as ContextManagerImpl)
|
| - .getContextInfoFor(resourceProvider.getFolder(projectPath))
|
| - .analysisDriver;
|
| - lints = testDriver.analysisOptions.lintRules;
|
| - } else {
|
| - AnalysisContext testContext = server.getContainingContext(testFile);
|
| - lints = getLints(testContext);
|
| - }
|
| + AnalysisDriver testDriver = (server.contextManager as ContextManagerImpl)
|
| + .getContextInfoFor(resourceProvider.getFolder(projectPath))
|
| + .analysisDriver;
|
| + lints = testDriver.analysisOptions.lintRules;
|
| // Registry should only contain single lint rule.
|
| expect(lints, hasLength(1));
|
| LintRule lint = lints.first as LintRule;
|
|
|