[autotest] Try to make TestWaylandOutputDevice::testEnabled more stable
The test failed on build.kde.org. Let's try to make the part which failed more robust.
This commit is contained in:
parent
700d519476
commit
ffb91b031c
1 changed files with 6 additions and 0 deletions
|
@ -454,11 +454,17 @@ void TestWaylandOutputDevice::testEnabled()
|
|||
m_serverOutputDevice->setEnabled(OutputDeviceInterface::Enablement::Disabled);
|
||||
QVERIFY(enabledChanged.wait());
|
||||
QCOMPARE(output.enabled(), OutputDevice::Enablement::Disabled);
|
||||
if (changed.count() != enabledChanged.count()) {
|
||||
QVERIFY(changed.wait());
|
||||
}
|
||||
QCOMPARE(changed.count(), enabledChanged.count());
|
||||
|
||||
m_serverOutputDevice->setEnabled(OutputDeviceInterface::Enablement::Enabled);
|
||||
QVERIFY(enabledChanged.wait());
|
||||
QCOMPARE(output.enabled(), OutputDevice::Enablement::Enabled);
|
||||
if (changed.count() != enabledChanged.count()) {
|
||||
QVERIFY(changed.wait());
|
||||
}
|
||||
QCOMPARE(changed.count(), enabledChanged.count());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue