We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c1e11b commit a240d5cCopy full SHA for a240d5c
pkg/analysis_server/test/client/completion_driver_test.dart
@@ -72,10 +72,15 @@ abstract class AbstractCompletionDriverTest
72
Future<List<CompletionSuggestion>> addTestFile(String content,
73
{int? offset}) async {
74
driver.addTestFile(content, offset: offset);
75
- await getSuggestions();
+
76
+ // Wait after adding the test file, this might affect diagnostics.
77
+ await pumpEventQueue(times: 1000);
78
79
// For sanity, ensure that there are no errors recorded for project files
80
// since that may lead to unexpected results.
81
_assertNoErrorsInProjectFiles();
82
83
+ await getSuggestions();
84
return suggestions;
85
}
86
0 commit comments