From 1bdae637e1362b44eb432d13a3ea5c7352a2059e Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 3 Aug 2016 15:08:10 -0400 Subject: [PATCH] test.mutable.update: reduce data size in half We only need three segments to exercise everything. This saves about 15% of the test.mutable runtime (from 76s to 64s on my laptop). --- src/allmydata/test/mutable/test_update.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/mutable/test_update.py b/src/allmydata/test/mutable/test_update.py index 9df1dab22..ef0db549c 100644 --- a/src/allmydata/test/mutable/test_update.py +++ b/src/allmydata/test/mutable/test_update.py @@ -22,7 +22,10 @@ class Update(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin): self.set_up_grid(num_servers=13) self.c = self.g.clients[0] self.nm = self.c.nodemaker - self.data = "testdata " * 100000 # about 900 KiB; MDMF + # self.data should be at least three segments long. + td = "testdata " + self.data = td*(int(3*SEGSIZE/len(td))+10) # currently about 400kB + assert len(self.data) > 3*SEGSIZE self.small_data = "test data" * 10 # 90 B; SDMF