RSS: Fix nondeterministic test failure

This commit is contained in:
Valentin Lorentz 2021-05-28 19:15:56 +02:00
parent 758f9bee34
commit b8852eb9f3

View File

@ -191,7 +191,10 @@ class RSSTestCase(ChannelPluginTestCase):
self.assertNotError('rss add xkcd http://xkcd.com/rss.xml') self.assertNotError('rss add xkcd http://xkcd.com/rss.xml')
self.assertNotError('rss announce add buggy') self.assertNotError('rss announce add buggy')
self.assertNotError('rss announce add xkcd') self.assertNotError('rss announce add xkcd')
self.assertNotError(' ') try:
self.assertNotError(' ', timeout=0.1)
except TimeoutError:
pass
with conf.supybot.plugins.RSS.sortFeedItems.context('oldestFirst'): with conf.supybot.plugins.RSS.sortFeedItems.context('oldestFirst'):
with conf.supybot.plugins.RSS.waitPeriod.context(1): with conf.supybot.plugins.RSS.waitPeriod.context(1):
timeFastForward(1.1) timeFastForward(1.1)