mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
MoobotFactoids: Prevent race condition in tests (for fastest computers).
This commit is contained in:
parent
be3017f1de
commit
f44e033827
@ -28,6 +28,8 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
###
|
###
|
||||||
|
|
||||||
|
import time
|
||||||
|
|
||||||
from supybot.test import *
|
from supybot.test import *
|
||||||
#import supybot.plugin as plugin
|
#import supybot.plugin as plugin
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
@ -218,6 +220,7 @@ class FactoidsTestCase(ChannelPluginTestCase):
|
|||||||
self.assertRegexp('most popular',
|
self.assertRegexp('most popular',
|
||||||
"Top 1 requested factoid:.*moogle.*(1)")
|
"Top 1 requested factoid:.*moogle.*(1)")
|
||||||
# Check plural response
|
# Check plural response
|
||||||
|
time.sleep(0.1)
|
||||||
self.prefix = userPrefix2
|
self.prefix = userPrefix2
|
||||||
self.assertNotError('mogle is <reply>mo')
|
self.assertNotError('mogle is <reply>mo')
|
||||||
self.assertRegexp('most authored',
|
self.assertRegexp('most authored',
|
||||||
|
Loading…
Reference in New Issue
Block a user