Commit a5290c8f authored by Sandro Knauß's avatar Sandro Knauß
Browse files

KMComposerWinTest:Add explaination for sleep.

parent b2caae50
Pipeline #51803 passed with stage
in 26 minutes and 6 seconds
...@@ -217,6 +217,7 @@ void KMComposerWinTest::testChangeIdentity() ...@@ -217,6 +217,7 @@ void KMComposerWinTest::testChangeIdentity()
auto identCombo = composer->findChild<KIdentityManagement::IdentityCombo *>(QStringLiteral("identitycombo")); auto identCombo = composer->findChild<KIdentityManagement::IdentityCombo *>(QStringLiteral("identitycombo"));
QVERIFY(identCombo); QVERIFY(identCombo);
identCombo->setCurrentIdentity(ident); identCombo->setCurrentIdentity(ident);
// We need a small sleep so that identity change can take place
QEventLoop loop; QEventLoop loop;
QTimer::singleShot(50, &loop, SLOT(quit())); QTimer::singleShot(50, &loop, SLOT(quit()));
loop.exec(); loop.exec();
...@@ -231,6 +232,7 @@ void KMComposerWinTest::testChangeIdentity() ...@@ -231,6 +232,7 @@ void KMComposerWinTest::testChangeIdentity()
auto identCombo = composer->findChild<KIdentityManagement::IdentityCombo *>(QStringLiteral("identitycombo")); auto identCombo = composer->findChild<KIdentityManagement::IdentityCombo *>(QStringLiteral("identitycombo"));
QVERIFY(identCombo); QVERIFY(identCombo);
identCombo->setCurrentIdentity(ident); identCombo->setCurrentIdentity(ident);
// We need a small sleep so that identity change can take place
QEventLoop loop; QEventLoop loop;
QTimer::singleShot(50, &loop, SLOT(quit())); QTimer::singleShot(50, &loop, SLOT(quit()));
loop.exec(); loop.exec();
......
Markdown is supported
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