Always use a timeout when calling event.wait()
Always use a timeout when calling event.wait()

This stops the tests for hanging forever if an event doesn't happen.
If your computer is really slow it may cause the tests to fail due to a
race condition, but the timeout is big enough that this isn't a serious
worry.

ESRC-CDRC/ckan-service-provider,ckan/ckan-service-provider,datawagovau/ckan-service-provider,deniszgonjanin/ckan-service-provider