From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Tue, 1 May 2007 04:03:43 +0000 (-0700)
Subject: bump some unit tests up to very high timeouts because my poor G4 867 MHz PowerBook... 
X-Git-Tag: allmydata-tahoe-0.2.0~38
X-Git-Url: https://git.rkrishnan.org/pf/content/simplejson/frontends/webapi.txt?a=commitdiff_plain;h=137a427a47b402f024106cbe4adab522bdd914d1;p=tahoe-lafs%2Ftahoe-lafs.git

bump some unit tests up to very high timeouts because my poor G4 867 MHz PowerBook, which is busy doing video iChat, takes a long time to run these tests
---

diff --git a/src/allmydata/test/test_introducer.py b/src/allmydata/test/test_introducer.py
index a0da3e55..93347c5e 100644
--- a/src/allmydata/test/test_introducer.py
+++ b/src/allmydata/test/test_introducer.py
@@ -143,6 +143,7 @@ class TestIntroducer(unittest.TestCase):
             # now disconnect somebody's connection to themselves
         d.addCallback(_check_again2)
         return d
+    test_system.timeout = 1200
 
     def stall(self, res, timeout):
         d = defer.Deferred()
diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py
index 9215509b..4cfdc453 100644
--- a/src/allmydata/test/test_system.py
+++ b/src/allmydata/test/test_system.py
@@ -204,7 +204,7 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
             return d1
         d.addCallback(_download_nonexistent_uri)
         return d
-    test_upload_and_download.timeout = 1100
+    test_upload_and_download.timeout = 2400
 
     def flip_bit(self, good):
         return good[:-1] + chr(ord(good[-1]) ^ 0x01)
diff --git a/src/allmydata/test/test_upload.py b/src/allmydata/test/test_upload.py
index 91dbef17..383462ae 100644
--- a/src/allmydata/test/test_upload.py
+++ b/src/allmydata/test/test_upload.py
@@ -38,12 +38,14 @@ class GoodServer(unittest.TestCase):
         d = self.u.upload_data(data)
         d.addCallback(self._check)
         return d
+    testData.timeout = 300
 
     def testFileHandle(self):
         data = "This is some data to upload"
         d = self.u.upload_filehandle(StringIO(data))
         d.addCallback(self._check)
         return d
+    testFileHandle.timeout = 300
 
     def testFilename(self):
         fn = "Uploader-testFilename.data"
@@ -54,6 +56,7 @@ class GoodServer(unittest.TestCase):
         d = self.u.upload_filename(fn)
         d.addCallback(self._check)
         return d
+    testFilename.test = 300
 
 class FullServer(unittest.TestCase):
     def setUp(self):