mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
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:
parent
dbd78f19d2
commit
1bdae637e1
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user