mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
Revert "Add assert to RandomContentFile, ensure size >= digest_size"
This reverts commitfb8f110e69
. realistic.files was meant to work just fine with short files. Commit91c4f88860
has a fix for the verifying side, to support short files. Conflicts: s3tests/realistic.py
This commit is contained in:
parent
0297d61e40
commit
56ff0f6374
1 changed files with 0 additions and 6 deletions
|
@ -18,12 +18,6 @@ class RandomContentFile(object):
|
|||
# Let seek initialize the rest of it, rather than dup code
|
||||
self.seek(0)
|
||||
|
||||
assert self.size >= self.digest_size, \
|
||||
"Can not create RandomContentFile: size ({size}) must be >= digest_size ({digest_size})".format(
|
||||
size=self.size,
|
||||
digest_size=self.digest_size
|
||||
)
|
||||
|
||||
def _mark_chunk(self):
|
||||
self.chunks.append([self.offset, (time.time() - self.last_seek) * 1000000000])
|
||||
|
||||
|
|
Loading…
Reference in a new issue