mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-28 09:31:38 +00:00
test_s3: key.set_contents_from_file() rewind on dual write
This fixes a failure with boto 2.4.0. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
adabd0ba7d
commit
f1f86a0de0
1 changed files with 1 additions and 1 deletions
|
@ -3143,7 +3143,7 @@ def _test_atomic_dual_write(file_size):
|
||||||
# but before we're done, try to write all A's
|
# but before we're done, try to write all A's
|
||||||
fp_a = FakeWriteFile(file_size, 'A')
|
fp_a = FakeWriteFile(file_size, 'A')
|
||||||
fp_b = FakeWriteFile(file_size, 'B',
|
fp_b = FakeWriteFile(file_size, 'B',
|
||||||
lambda: key2.set_contents_from_file(fp_a)
|
lambda: key2.set_contents_from_file(fp_a, rewind=True)
|
||||||
)
|
)
|
||||||
key.set_contents_from_file(fp_b)
|
key.set_contents_from_file(fp_b)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue