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

This commit is contained in:
Zooko O'Whielacronx 2007-04-30 21:03:43 -07:00
parent 461d64e371
commit 137a427a47
3 changed files with 5 additions and 1 deletions

View File

@ -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()

View File

@ -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)

View File

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