aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2019-07-18 10:43:09 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2019-07-18 11:47:25 +0000
commit56337478e7e435e4ff9a301a848ba19f2a86cab6 (patch)
treeedd4f94f429b16853f533d805b902152278054f5 /src/plugins/clangcodemodel
parent83f83e0b5408ef4f83b9da1356563648f703a979 (diff)
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>
Diffstat (limited to 'src/plugins/clangcodemodel')
-rw-r--r--src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp b/src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp
index 8d3f1b54a0..cb8105a33a 100644
--- a/src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp
+++ b/src/plugins/clangcodemodel/test/clangcodecompletion_test.cpp
@@ -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"));