Index: pkg/analyzer/test/src/context/context_test.dart |
diff --git a/pkg/analyzer/test/src/context/context_test.dart b/pkg/analyzer/test/src/context/context_test.dart |
index 83a9a3d6e5efc1f310646b7d4593b5788f7bdb83..2ec73ef24439d17e96e4cf5c4821faafd4476335 100644 |
--- a/pkg/analyzer/test/src/context/context_test.dart |
+++ b/pkg/analyzer/test/src/context/context_test.dart |
@@ -2561,24 +2561,13 @@ int a = 0;'''); |
* Perform analysis tasks up to 512 times and assert that it was enough. |
*/ |
void _analyzeAll_assertFinished([int maxIterations = 512]) { |
- bool finishedAnalyzing = false; |
for (int i = 0; i < maxIterations; i++) { |
List<ChangeNotice> notice = context.performAnalysisTask().changeNotices; |
if (notice == null) { |
- finishedAnalyzing = true; |
- bool inconsistent = context.validateCacheConsistency(); |
- if (!inconsistent) { |
- return; |
- } |
+ return; |
} |
} |
- if (finishedAnalyzing) { |
- fail( |
- "performAnalysisTask failed to finish analyzing all sources after $maxIterations iterations"); |
- } else { |
- fail( |
- "performAnalysisTask failed to terminate after analyzing all sources"); |
- } |
+ fail("performAnalysisTask failed to terminate after analyzing all sources"); |
} |
void _assertNoExceptions() { |