SupyML: fix threading issue in test cases
parent
4f159105ed
commit
82db7e49ff
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
|
import time
|
||||||
from supybot.test import *
|
from supybot.test import *
|
||||||
|
|
||||||
class SupyMLTestCase(ChannelPluginTestCase):
|
class SupyMLTestCase(ChannelPluginTestCase):
|
||||||
|
@ -35,6 +36,7 @@ class SupyMLTestCase(ChannelPluginTestCase):
|
||||||
#################################
|
#################################
|
||||||
# Utilities
|
# Utilities
|
||||||
def _getIfAnswerIsEqual(self, msg):
|
def _getIfAnswerIsEqual(self, msg):
|
||||||
|
time.sleep(0.5)
|
||||||
m = self.irc.takeMsg()
|
m = self.irc.takeMsg()
|
||||||
while m is not None:
|
while m is not None:
|
||||||
if repr(m) == repr(msg):
|
if repr(m) == repr(msg):
|
||||||
|
|
Loading…
Reference in New Issue