adding assert to verify that we are not waiting for too long