Notify if a default provider failed to download
ClosedPublic

Authored by apol on Dec 15 2018, 2:05 AM.

Details

Summary

Otherwise we end up waiting forever without really knowing what
happened.

Diff Detail

Repository
R235 Attica
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 6040
Build 6058: arc lint + arc unit
apol created this revision.Dec 15 2018, 2:05 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 15 2018, 2:05 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
apol requested review of this revision.Dec 15 2018, 2:05 AM
leinir accepted this revision.Dec 19 2018, 5:10 PM

Hm, definitely yes. Frankly i thought this already happened, goes to show what assumptions make of us, eh? ;)

This revision is now accepted and ready to land.Dec 19 2018, 5:10 PM
apol closed this revision.Dec 19 2018, 5:13 PM
dfaure added a subscriber: dfaure.Jan 4 2019, 9:20 PM

The unittest failed. I kind of fixed it (see commit 32a662b), and my fix works, but it's ugly, it still waits for 5s instead of using that failedToLoad signal.

However when requiring the signal to be emitted (see patch below), the test is unstable (sometimes it passes, sometimes it fails -- ProviderManager::fileFinished isn't called). Any idea why?

http://www.davidfaure.fr/2019/0001-autotests-use-new-signal-failedToLoad-in-ProviderTes.patch