Added a sleep to the spinloop so it doesn't suck up 100% cpu.

This commit is contained in:
Jeremy Fincher 2003-09-05 17:35:46 +00:00
parent fed6273f03
commit f1a9b3f546
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ class PluginTestCase(unittest.TestCase):
fed = time.time()
response = self.irc.takeMsg()
while response is None and time.time() - fed < timeout:
time.sleep(0.1) # So it doesn't suck up 100% cpu.
drivers.run()
response = self.irc.takeMsg()
return response