Source

CherryPy / cherrypy / test / test_caching.py

Diff from to

File cherrypy/test/test_caching.py

         self.getPage("/clear_cache?path=" +
             quote('/long_process?seconds=%d' % SECONDS, safe=''))
         self.assertStatus(200)
-        sys.stdout.write("prepped... ")
-        sys.stdout.flush()
         
         start = datetime.datetime.now()
         def run():
         for t in ts:
             t.join()
         self.assertEqualDates(start, datetime.datetime.now(),
-                              # Allow a second for our thread/TCP overhead etc.
-                              seconds=SECONDS + 1.1)
+                              # Allow a second (two, for slow hosts)
+                              # for our thread/TCP overhead etc.
+                              seconds=SECONDS + 2)
     
     def test_cache_control(self):
         self.getPage("/control")