[autotests] Optimistic attempt to fix RemoteAccessTest reilability

Authored by davidedmundson on Apr 17 2020, 2:01 PM.

Description

[autotests] Optimistic attempt to fix RemoteAccessTest reilability

Summary:
In this test we are waiting on 4 events. 2 things via 2 threads. It was
unstable.

This patch avoids hardcoding a bunch of ifs() handling recieving
different orders, by waiting for both events.

We can't use QTRY_COMPARE as ConnectionThread does magic things with
QCoreApplication::eventDispatcher which don't work quite the same.

This is a bit of a shot in the dark. It passes 100% of the time locally,
lets see what CI manages to do :)

Test Plan: Ran test :)

Reviewers: KWin, zzag

Reviewed By: KWin, zzag

Subscribers: zzag, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D28892

Details

Committed
davidedmundsonApr 17 2020, 2:01 PM
Reviewer
KWin
Differential Revision
D28892: [autotests] Optimistic attempt to fix RemoteAccessTest reilability
Parents
R127:00bbc5144655: GIT_SILENT Upgrade KF5 version to 5.70.0.
Branches
Unknown
Tags
Unknown