Clang: Tests: Fix flaky testCompleteProjectDependingCodeAfterChangingProject

After changing the project, ensure that the project part is updated and
thus the backend is notified about it, otherwise we run into a race
condition.

Change-Id: Iea1ff16156350d10982cfd7fac3e8e5220eb4726
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Nikolai Kosjar
2019-07-18 10:43:09 +02:00
parent 83f83e0b54
commit 56337478e7

View File

@@ -655,6 +655,7 @@ void ClangCodeCompletionTest::testCompleteProjectDependingCodeAfterChangingProje
// Check completion with project configuration 2
QVERIFY(projectLoader.updateProject({{"PROJECT_CONFIGURATION_2"}}));
openEditor.waitUntilBackendIsNotified();
proposal = completionResults(openEditor.editor());
QVERIFY(!hasItem(proposal, "projectConfiguration1"));