Test test_scheduler_last (beat.core.test.test_worker.TestConnection) is hanging

This test seems to hang from time to time on the CI. Example:

https://gitlab.idiap.ch/beat/beat.core/-/jobs/133229

Edited by André Anjos