[autotests] Try to make SceneQPainterTest::testX11Window more robust

Still failing on CI, let's try  to verify that the buffer is ready.
icc-effect-5.14.5
Martin Flöser 2017-07-27 21:34:48 +02:00
parent 4b89011099
commit a13ecb1cac
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KWayland/Client/shell.h>
#include <KWayland/Client/surface.h>
#include <KWayland/Client/pointer.h>
#include <KWayland/Server/surface_interface.h>
#include <QPainter>
@ -339,6 +340,7 @@ void SceneQPainterTest::testX11Window()
QVERIFY(surfaceChangedSpy.wait());
}
QVERIFY(client->surface());
QTRY_VERIFY(client->surface()->buffer());
// enough time for rendering the window
QTest::qWait(100);