Commit 233e388e authored by Martin Flöser's avatar Martin Flöser
Browse files

[autotests] Try making TestWaylandSurface::testDisconnect more robust

On the Surface is often already destroyed when returning
from waiting on client disconnected.

This change tries to handle the situation better: only if the signal
is not yet emitted, try to wait for it.
parent a092de25
......@@ -945,7 +945,9 @@ void TestWaylandSurface::testDisconnect()
QCOMPARE(clientDisconnectedSpy.count(), 1);
QCOMPARE(surfaceDestroyedSpy.count(), 0);
if (surfaceDestroyedSpy.isEmpty()) {
QTRY_COMPARE(surfaceDestroyedSpy.count(), 1);
Supports Markdown
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