194db8ed45
There are numerous race conditions between issuing action and getting the events. This causes a mismatch, such that the events from SelectAll is received when waiting for the events for a subsequent action (say, Delete). To make matters worse, sometimes Core issues an invalidation whilst sending the events for an action, and this completely messes our accounting of what events we expect. This latter could also be an issue with real clients, however it's less likely to be disruptive. Still, it is possible that the client doesn't get key events because Core had a hiccup, which breaks the tests. For the tests at least, the solution is to re-issue the last action, such that we make sure that we move forward only when the correct event is received, or we timeout waiting. The end results is that tests now don't fail nearly as often as they used to. Reviewed-on: https://gerrit.libreoffice.org/80894 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 050403daf04d6b36ef850006ba4a15eab6be9afc) Change-Id: Ib1a658846061990649987ca083915a49c1fb092a Reviewed-on: https://gerrit.libreoffice.org/81565 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> |
||
---|---|---|
.. | ||
data | ||
.gitignore | ||
countloolkits.hpp | ||
DeltaTests.cpp | ||
fakesockettest.cpp | ||
helpers.hpp | ||
httpcrashtest.cpp | ||
httpwserror.cpp | ||
httpwstest.cpp | ||
integration-http-server.cpp | ||
Makefile.am | ||
run_unit.sh.in | ||
test.cpp | ||
test.hpp | ||
TileCacheTests.cpp | ||
TileQueueTests.cpp | ||
UnitAdmin.cpp | ||
UnitClient.cpp | ||
UnitConvert.cpp | ||
UnitCopyPaste.cpp | ||
UnitFuzz.cpp | ||
UnitHTTP.cpp | ||
UnitLargePaste.cpp | ||
UnitLoadTorture.cpp | ||
UnitOAuth.cpp | ||
UnitOOB.cpp | ||
UnitPasswordProtected.cpp | ||
UnitPaste.cpp | ||
UnitPrefork.cpp | ||
UnitRenderingOptions.cpp | ||
UnitStorage.cpp | ||
UnitTiffLoad.cpp | ||
UnitTileCache.cpp | ||
UnitTimeout.cpp | ||
UnitTyping.cpp | ||
UnitWOPI.cpp | ||
UnitWOPIDocumentConflict.cpp | ||
UnitWOPILoadEncoded.cpp | ||
UnitWopiOwnertermination.cpp | ||
UnitWOPIRenameFile.cpp | ||
UnitWOPISaveAs.cpp | ||
UnitWOPITemplate.cpp | ||
UnitWOPIVersionRestore.cpp | ||
WhiteBoxTests.cpp | ||
WopiTestServer.hpp |