Commit b2f30e7d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

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
parent 9fc09b9a
...@@ -318,9 +318,6 @@ void TestScreenEdges::testCreatingInitialEdges() ...@@ -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
......
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