[autotests] Don't change screens during cleanup

Screens are set during init, to do so at cleanup doesn't bring a lot.

It leads to a potential awkward raciness with xwayland failing the test,
whilst doing something that isn't part of what we're testing here or
likely to happen in real life.
This commit is contained in:
David Edmundson 2020-07-14 10:51:22 +01:00 committed by David Edmundson
parent bb138d7668
commit 3a74be2df6

View file

@ -209,8 +209,6 @@ void InternalWindowTest::init()
void InternalWindowTest::cleanup() void InternalWindowTest::cleanup()
{ {
Test::destroyWaylandConnection(); Test::destroyWaylandConnection();
QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2));
} }
void InternalWindowTest::testEnterLeave() void InternalWindowTest::testEnterLeave()