MoobotFactoids: Prevent race condition in tests (for fastest computers).

This commit is contained in:
Valentin Lorentz 2013-01-05 20:19:59 +01:00
parent be3017f1de
commit f44e033827

View File

@ -28,6 +28,8 @@
# POSSIBILITY OF SUCH DAMAGE.
###
import time
from supybot.test import *
#import supybot.plugin as plugin
import supybot.ircutils as ircutils
@ -218,6 +220,7 @@ class FactoidsTestCase(ChannelPluginTestCase):
self.assertRegexp('most popular',
"Top 1 requested factoid:.*moogle.*(1)")
# Check plural response
time.sleep(0.1)
self.prefix = userPrefix2
self.assertNotError('mogle is <reply>mo')
self.assertRegexp('most authored',