[Zope-CVS] CVS: Products/FileCacheManager/tests - TestFCMRig.py:1.2

Jens Vagelpohl jens at dataflake.org
Sun Aug 29 14:35:19 EDT 2004


Update of /cvs-repository/Products/FileCacheManager/tests
In directory cvs.zope.org:/tmp/cvs-serv14441

Modified Files:
	TestFCMRig.py 
Log Message:
- fix two overly tight loops


=== Products/FileCacheManager/tests/TestFCMRig.py 1.1 => 1.2 ===
--- Products/FileCacheManager/tests/TestFCMRig.py:1.1	Sun Aug 29 06:26:54 2004
+++ Products/FileCacheManager/tests/TestFCMRig.py	Sun Aug 29 14:35:18 2004
@@ -12,7 +12,7 @@
 
 from utils import post_multipart
 
-WRITERATIO = 0.0
+WRITERATIO = 0.1
 FILESPATH = '/usr/local/zope/opt/FileCacheManager-HEAD/tests/files'
 TESTFILES = { 'small.pdf'  : os.path.join(FILESPATH, 'small.pdf')
             , 'medium.pdf' : os.path.join(FILESPATH, 'medium.pdf')
@@ -22,11 +22,11 @@
                 , 'medium.pdf' : os.stat(TESTFILES.get('medium.pdf'))[6]
                 , 'large.pdf'  : os.stat(TESTFILES.get('large.pdf'))[6]
                 }
-SERVERS   = ( 'localhost:10080'
-            , 'localhost:20080'
-            , 'localhost:30080'
-            , 'localhost:40080'
-            , 'localhost:50080'
+SERVERS   = ( 'localhost:10080',
+#            , 'localhost:20080'
+#            , 'localhost:30080'
+#            , 'localhost:40080'
+#            , 'localhost:50080'
             )
 FOLDERS   = ('folder1', 'folder2', 'folder3', 'folder4', 'folder5')
 FILES     = ('file1', 'file2', 'file3')
@@ -148,6 +148,7 @@
                     print ',',
                     sys.stdout.flush()
                     requests.remove(request)
+                time.sleep(0.1)
 
         self.isDone = 1
 
@@ -165,6 +166,7 @@
         for browser in browsers:
             if browser.isDone:
                 browsers.remove(browser)
+            time.sleep(0.1)
 
 
     end_time = time.time()



More information about the Zope-CVS mailing list