Index: pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart |
diff --git a/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart b/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart |
index d75024bc8cb7b878c38e0639412eaa7319115eaf..0504f2264954ad66c98f6e14f9deae76b7572c92 100644 |
--- a/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart |
+++ b/pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart |
@@ -368,6 +368,9 @@ abstract class DartCompletionContributorTest extends AbstractContextTest { |
if (libraries.isNotEmpty) { |
return new Future.value(libraries); |
} |
+ if (times == 0) { |
+ fail('failed to determine libraries containing $testSource'); |
+ } |
context.performAnalysisTask(); |
// We use a delayed future to allow microtask events to finish. The |
// Future.value or Future() constructors use scheduleMicrotask themselves and |