Skip to content

Commit

Permalink
Tweak for make test passing with useTaskModel = true.
Browse files Browse the repository at this point in the history
A real fix after final actual switching.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1410493005 .
  • Loading branch information
scheglov committed Oct 16, 2015
1 parent ee0f98a commit 18a29ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/analysis_server/test/analysis/update_content_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ class UpdateContentTest extends AbstractAnalysisTest {
server.updateContent('2', {testFile: new RemoveContentOverlay()});
// Validate that at the end the unit was indexed.
await server.onAnalysisComplete;
verify(server.index.index(anyObject, testUnitMatcher)).times(2);
if (AnalysisEngine.instance.useTaskModel) {
verify(server.index.index(anyObject, testUnitMatcher)).times(3);
} else {
verify(server.index.index(anyObject, testUnitMatcher)).times(2);
}
}

test_multiple_contexts() async {
Expand Down

0 comments on commit 18a29ba

Please sign in to comment.