1. Aldona Majorek
  2. eventlet-py3k

Commits

Ryan Williams  committed b19d029

Lessen timing-dependency of this count, also better error reporting.

  • Participants
  • Parent commits 7d444cc
  • Branches default

Comments (0)

Files changed (1)

File tests/tpool_test.py

View file
                 
         counter = [0]
         def tick():
-            for i in xrange(20):
+            for i in xrange(20000):
                 counter[0]+=1
-                eventlet.sleep(0.0001)
+                eventlet.sleep()
                 
         gt = eventlet.spawn(tick)
         previtem = 0
             self.assert_(item >= previtem)
         # make sure the tick happened at least a few times so that we know
         # that our iterations in foo() were actually tpooled
-        self.assert_(counter[0] > 10)
+        self.assert_(counter[0] > 10, counter[0])
         gt.wait()