[autotests] Try to make SceneQPainterTest::testX11Window more robust
Still failing on CI, let's try to verify that the buffer is ready.
This commit is contained in:
parent
4b89011099
commit
a13ecb1cac
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue