Commit 33046ef7 authored by Milian Wolff's avatar Milian Wolff
Browse files

Use QTRY_VERIFY to make the test more resilient

It keeps failing on the CI, and I wonder if it's simply not enough
to just wait 200ms there for the thread switching to be finished.
parent 84b7ebbb
Pipeline #202349 passed with stage
in 14 minutes and 10 seconds
......@@ -834,9 +834,7 @@ void GdbTest::testStackSwitchThread()
tIdx = stackModel->index(1,0);
QVERIFY(stackModel->data(tIdx).toString().startsWith("#2 at "));
stackModel->setCurrentThread(2);
QTest::qWait(200);
int rows = stackModel->rowCount(tIdx);
QVERIFY(rows > 3);
QTRY_VERIFY(stackModel->rowCount(tIdx) > 3);
session->run();
WAIT_FOR_STATE(session, DebugSession::EndedState);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment