testScreenEdges: no need to wait twice for Screens::changed

Now ::init does it and we don't need to account for it from test cases
This commit is contained in:
Aleix Pol 2020-09-03 11:23:06 +02:00
parent 9fc09b9a32
commit b2f30e7d7d

View file

@ -318,9 +318,6 @@ void TestScreenEdges::testCreatingInitialEdges()
static_cast<MockScreens*>(screens())->setGeometries(QList<QRect>{QRect{0, 0, 1024, 768}}); static_cast<MockScreens*>(screens())->setGeometries(QList<QRect>{QRect{0, 0, 1024, 768}});
QSignalSpy changedSpy(screens(), &Screens::changed); QSignalSpy changedSpy(screens(), &Screens::changed);
QVERIFY(changedSpy.isValid()); QVERIFY(changedSpy.isValid());
// first is before it's updated
QVERIFY(changedSpy.wait());
// second is after it's updated
QVERIFY(changedSpy.wait()); QVERIFY(changedSpy.wait());
// let's update the layout and verify that we have edges // let's update the layout and verify that we have edges