From 137a427a47b402f024106cbe4adab522bdd914d1 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Mon, 30 Apr 2007 21:03:43 -0700
Subject: [PATCH] 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

---
 src/allmydata/test/test_introducer.py | 1 +
 src/allmydata/test/test_system.py     | 2 +-
 src/allmydata/test/test_upload.py     | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)

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):
-- 
2.45.2