From f1a9b3f54661dc3250301b3e6178565123589cf2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 5 Sep 2003 17:35:46 +0000 Subject: [PATCH] Added a sleep to the spinloop so it doesn't suck up 100% cpu. --- test/test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test.py b/test/test.py index 2d2e45f90..ce8e60c35 100755 --- a/test/test.py +++ b/test/test.py @@ -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