@@ -138,7 +138,7 @@ private Q_SLOTS:
138138 greeter->authenticate("has-password");
139139 spy.wait();
140140
141− QCOMPARE(spy.count(), 1);
141+ QVERIFY(spy.count() > 0);
142142 QList<QVariant> arguments = spy.takeFirst();
143143 QVERIFY(arguments.at(0).toString() == "com.canonical.UnityGreeter.List");
144144 QVERIFY(arguments.at(1).toMap().contains("ActiveEntry"));
@@ -150,12 +150,10 @@ private Q_SLOTS:
150150 QVERIFY(dbusList->property("EntryIsLocked").toBool());
151151
152152 greeter->authenticate("no-password");
153− QCoreApplication::processEvents(); // wait for auth to finish
154− QVERIFY(!dbusList->property("EntryIsLocked").toBool());
153+ QTRY_VERIFY(!dbusList->property("EntryIsLocked").toBool());
155154
156155 greeter->authenticate("has-password");
157− QCoreApplication::processEvents(); // wait for auth to finish
158− QVERIFY(dbusList->property("EntryIsLocked").toBool());
156+ QTRY_VERIFY(dbusList->property("EntryIsLocked").toBool());
159157 }
160158
161159 void testEntryIsLockedChanged()