[Checkins] SVN: relstorage/trunk/relstorage/tests/reltestbase.py Nobody will ever need more than 18.2 ticks per second.

Shane Hathaway shane at hathawaymix.org
Mon Oct 5 22:56:24 EDT 2009


Log message for revision 104821:
  Nobody will ever need more than 18.2 ticks per second.
  

Changed:
  U   relstorage/trunk/relstorage/tests/reltestbase.py

-=-
Modified: relstorage/trunk/relstorage/tests/reltestbase.py
===================================================================
--- relstorage/trunk/relstorage/tests/reltestbase.py	2009-10-06 00:56:01 UTC (rev 104820)
+++ relstorage/trunk/relstorage/tests/reltestbase.py	2009-10-06 02:56:23 UTC (rev 104821)
@@ -429,7 +429,10 @@
             # Choose the pack time
             now = packtime = time.time()
             while packtime <= now:
+                time.sleep(0.1)
                 packtime = time.time()
+            while packtime == time.time():
+                time.sleep(0.1)
 
             extra2.foo = 'bar'
             extra3 = PersistentMapping()



More information about the checkins mailing list