Added an assertion that timeout actually happens.