[PendingFileQueueTest] Use synthetic timer events to speedup test
ClosedPublic

Authored by bruns on Jun 13 2019, 11:34 PM.

Details

Summary

Waiting 5 seconds until the pending file queue has been processed slows
down the tests significantly, instead of waiting for the time to pass
inject events with appropriate timestamps, the real timer events are
filtered out. This shortens the runtime from 7.6 to 2.6 seconds.

The first test still uses real timers, to check if the chained triggering
of the timers from the slots work.

Depends on D21792

Test Plan

ctest

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Jun 13 2019, 11:34 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptJun 13 2019, 11:34 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Jun 13 2019, 11:34 PM
ngraham accepted this revision.Jun 14 2019, 2:37 PM
This revision is now accepted and ready to land.Jun 14 2019, 2:37 PM
This revision was automatically updated to reflect the committed changes.