forked from qt-creator/qt-creator
ClangCodeModel: Fix flaky clangd test
Signals emitted for the fallback client got in the way. Change-Id: I29a7fe5221a1f489eff91c772f9a6bb0fff7c4f1 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -2010,9 +2010,10 @@ void ClangdTestExternalChanges::test()
|
||||
header.close();
|
||||
ClangdClient * const oldClient = client();
|
||||
QVERIFY(oldClient);
|
||||
QVERIFY(!waitForSignalOrTimeout(ClangModelManagerSupport::instance(),
|
||||
&ClangModelManagerSupport::createdClient, timeOutInMs()));
|
||||
waitForSignalOrTimeout(ClangModelManagerSupport::instance(),
|
||||
&ClangModelManagerSupport::createdClient, timeOutInMs());
|
||||
QCOMPARE(client(), oldClient);
|
||||
QCOMPARE(client(), ClangModelManagerSupport::instance()->clientForProject(project()));
|
||||
const TextDocument * const curDoc = document("main.cpp");
|
||||
QVERIFY(curDoc);
|
||||
QVERIFY(curDoc->marks().isEmpty());
|
||||
|
||||
Reference in New Issue
Block a user