Add delay to end-to-end tests
Add delay to end-to-end tests

This is a temporary workaround that allows the worker thread to handle
all events in the queue before the test process exits. Proper
synchronization is needed here.

ruuda/hoff,ruuda/hoff