Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Unified Diff: pkg/analysis_server/test/analysis/notification_errors_test.dart

Issue 1406043002: Registry memory leak fixes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: removed overrides. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 7cc7099252a450d5c35f5eefdaf497547cc1eabf..46de68d6383ff0d164bac30744a24cbebb28eaeb 100644
--- a/pkg/analysis_server/test/analysis/notification_errors_test.dart
+++ b/pkg/analysis_server/test/analysis/notification_errors_test.dart
@@ -87,10 +87,8 @@ linter:
handleSuccessfulRequest(request);
return waitForTasksFinished().then((_) {
- // Confirm lint is registered.
- expect(lintRegistry, isNotEmpty);
AnalysisContext testContext = server.getContainingContext(testFile);
- List<Linter> lints = lintRegistry[testContext];
+ List<Linter> lints = getLints(testContext);
// Registry should only contain single lint rule.
expect(lints, hasLength(1));
LintRule lint = lints.first as LintRule;
« no previous file with comments | « DEPS ('k') | pkg/analyzer/CHANGELOG.md » ('j') | pkg/analyzer/lib/src/services/lint.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698