add infinitive loop fix from fedora

otherwise tests run forever and probably do so in real use too