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).
This commit is contained in:
Brian Warner 2016-08-03 15:08:10 -04:00
parent dbd78f19d2
commit 1bdae637e1

View File

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