Sometimes a test might fall into an infinite loop and there seems to be no easy way to set a global timeout for all tests or a local timeout for a single test. The only way I see to implement this at the moment is an unwieldy solution using futures and Await.result(...).