mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
RSS: Fix nondeterministic test failures
Caused by 'rss announce add' triggering headline announces, that would delay the execution of the 'remove' commands. Thanks to @mapreri and @Unit193 for help in reproducing the issue and confirming the patch.
This commit is contained in:
parent
0c8e455b4e
commit
ca624d7ae6
@ -103,9 +103,14 @@ class RSSTestCase(ChannelPluginTestCase):
|
||||
|
||||
@mock_urllib
|
||||
def testRemoveAliasedFeed(self, mock):
|
||||
mock._data = xkcd_new
|
||||
mock._data = xkcd_old
|
||||
try:
|
||||
self.assertNotError('rss announce add http://xkcd.com/rss.xml')
|
||||
|
||||
# Clear the queue or it's going to mess up the finally block
|
||||
self.assertRegexp(' ', 'Snake Facts')
|
||||
self.assertNoResponse(' ')
|
||||
|
||||
self.assertNotError('rss add xkcd http://xkcd.com/rss.xml')
|
||||
finally:
|
||||
self.assertNotError('rss announce remove http://xkcd.com/rss.xml')
|
||||
|
Loading…
Reference in New Issue
Block a user