TestEventPublisher: performance improvement
Separate handling of when an event is expected to exist and not.
* Return early if event exists
Checking every 50 ms saves 10-15 seconds on the current execution
time of the entire test-suite since the event is most often
available before the wait-timeout (500 ms) is complete.
* Handle expected missing events in TestEventsPublisher
By calling the TestEventPublisher to check if an event is missing we
can skip the check-every-x-seconds loop.
This has the added benefit that it removes a lot of copy-paste code
from the test-cases.
Change-Id: I764e87100f2f768d628facd4393b0fc0479aeaef
3 files changed