mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 04:32:51 +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
|
@mock_urllib
|
||||||
def testRemoveAliasedFeed(self, mock):
|
def testRemoveAliasedFeed(self, mock):
|
||||||
mock._data = xkcd_new
|
mock._data = xkcd_old
|
||||||
try:
|
try:
|
||||||
self.assertNotError('rss announce add http://xkcd.com/rss.xml')
|
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')
|
self.assertNotError('rss add xkcd http://xkcd.com/rss.xml')
|
||||||
finally:
|
finally:
|
||||||
self.assertNotError('rss announce remove http://xkcd.com/rss.xml')
|
self.assertNotError('rss announce remove http://xkcd.com/rss.xml')
|
||||||
|
Loading…
Reference in New Issue
Block a user