mirror of
https://github.com/ceph/s3-tests.git
synced 2024-12-23 13:41:52 +00:00
fix atomic write test
the interrupt() now shouldn't be getting called extra times after the file has been read completely
This commit is contained in:
parent
d65a33421a
commit
9279998aa6
1 changed files with 1 additions and 1 deletions
|
@ -1026,7 +1026,7 @@ def _test_atomic_write(file_size):
|
|||
self.offset += count
|
||||
|
||||
# Sneaky! do stuff before we return (the last time)
|
||||
if self.interrupt != None and self.offset == self.size:
|
||||
if self.interrupt != None and self.offset == self.size and count > 0:
|
||||
self.interrupt()
|
||||
|
||||
return self.char*count
|
||||
|
|
Loading…
Reference in a new issue