From 63c8f0c4249f4aced15db9bd706e10b62c69f14c Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Thu, 4 Jun 2009 20:14:44 -0700 Subject: [PATCH] =?utf8?q?tests:=20bump=20up=20the=20timeout=20on=20a=20bu?= =?utf8?q?nch=20of=20tests=20that=20took=20longer=20than=20the=20default?= =?utf8?q?=20timeout=20(120s)=20on=20Fran=C3=A7ois=20Lenny-armv5tel?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/allmydata/test/test_deepcheck.py | 3 +++ src/allmydata/test/test_dirnode.py | 3 +++ src/allmydata/test/test_download.py | 1 + src/allmydata/test/test_encode.py | 3 +++ src/allmydata/test/test_helper.py | 1 + 5 files changed, 11 insertions(+) diff --git a/src/allmydata/test/test_deepcheck.py b/src/allmydata/test/test_deepcheck.py index 9df0c7cc..c6617c14 100644 --- a/src/allmydata/test/test_deepcheck.py +++ b/src/allmydata/test/test_deepcheck.py @@ -21,6 +21,7 @@ from allmydata.test.common_util import StallMixin from allmydata.test.no_network import GridTestMixin class MutableChecker(GridTestMixin, unittest.TestCase, ErrorMixin): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def _run_cli(self, argv): stdout, stderr = StringIO(), StringIO() @@ -831,6 +832,7 @@ class DeepCheckWebGood(DeepCheckBase, unittest.TestCase): class DeepCheckWebBad(DeepCheckBase, unittest.TestCase): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def test_bad(self): self.basedir = "deepcheck/DeepCheckWebBad/bad" @@ -1159,6 +1161,7 @@ class DeepCheckWebBad(DeepCheckBase, unittest.TestCase): return d class Large(DeepCheckBase, unittest.TestCase): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def test_lots_of_lits(self): self.basedir = "deepcheck/Large/lots_of_lits" self.set_up_grid() diff --git a/src/allmydata/test/test_dirnode.py b/src/allmydata/test/test_dirnode.py index 656d8903..53ab4ef7 100644 --- a/src/allmydata/test/test_dirnode.py +++ b/src/allmydata/test/test_dirnode.py @@ -92,6 +92,7 @@ class FakeClient: class Dirnode(unittest.TestCase, testutil.ShouldFailMixin, testutil.StallMixin, ErrorMixin): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def setUp(self): self.client = FakeClient() @@ -713,6 +714,7 @@ class Dirnode(unittest.TestCase, return d class DeepStats(unittest.TestCase): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def test_stats(self): ds = dirnode.DeepStats(None) ds.add("count-files") @@ -772,6 +774,7 @@ class UCWEingNewDirectoryNode(dirnode.NewDirectoryNode): class Deleter(GridTestMixin, unittest.TestCase): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def test_retry(self): # ticket #550, a dirnode.delete which experiences an # UncoordinatedWriteError will fail with an incorrect "you're diff --git a/src/allmydata/test/test_download.py b/src/allmydata/test/test_download.py index 998cea54..042105e2 100644 --- a/src/allmydata/test/test_download.py +++ b/src/allmydata/test/test_download.py @@ -68,6 +68,7 @@ mutable_shares = { #--------- END stored_shares.py ---------------- class DownloadTest(GridTestMixin, unittest.TestCase): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def test_download(self): self.basedir = self.mktemp() self.set_up_grid() diff --git a/src/allmydata/test/test_encode.py b/src/allmydata/test/test_encode.py index b3461f35..62b4ecfc 100644 --- a/src/allmydata/test/test_encode.py +++ b/src/allmydata/test/test_encode.py @@ -174,6 +174,7 @@ def make_data(length): return data[:length] class ValidatedExtendedURIProxy(unittest.TestCase): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. K = 4 M = 10 SIZE = 200 @@ -270,6 +271,7 @@ class ValidatedExtendedURIProxy(unittest.TestCase): return defer.DeferredList(dl) class Encode(unittest.TestCase): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def do_encode(self, max_segment_size, datalen, NUM_SHARES, NUM_SEGMENTS, expected_block_hashes, expected_share_hashes): @@ -416,6 +418,7 @@ class StoppingTarget(PausingTarget): self.producer.stopProducing() class Roundtrip(unittest.TestCase, testutil.ShouldFailMixin): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def send_and_recover(self, k_and_happy_and_n=(25,75,100), AVAILABLE_SHARES=None, datalen=76, diff --git a/src/allmydata/test/test_helper.py b/src/allmydata/test/test_helper.py index 38ce5eee..d2e689c0 100644 --- a/src/allmydata/test/test_helper.py +++ b/src/allmydata/test/test_helper.py @@ -92,6 +92,7 @@ def upload_data(uploader, data, convergence): return uploader.upload(u) class AssistedUpload(unittest.TestCase): + timeout = 240 # It takes longer than 120 seconds on Francois's arm box. def setUp(self): self.s = FakeClient() self.s.startService() -- 2.45.2