test nullify length on blob delete
This commit is contained in:
parent
fcdd9295b4
commit
61132312dd
1 changed files with 4 additions and 1 deletions
|
@ -118,8 +118,11 @@ class TestRecoverOldStreamDescriptors(AsyncioTestCase):
|
||||||
handle.write(b'doesnt work')
|
handle.write(b'doesnt work')
|
||||||
blob = BlobFile(loop, tmp_dir, sd_hash)
|
blob = BlobFile(loop, tmp_dir, sd_hash)
|
||||||
self.assertTrue(blob.file_exists)
|
self.assertTrue(blob.file_exists)
|
||||||
|
self.assertIsNotNone(blob.length)
|
||||||
with self.assertRaises(InvalidStreamDescriptorError):
|
with self.assertRaises(InvalidStreamDescriptorError):
|
||||||
await StreamDescriptor.from_stream_descriptor_blob(
|
await StreamDescriptor.from_stream_descriptor_blob(
|
||||||
loop, tmp_dir, BlobFile(loop, tmp_dir, sd_hash)
|
loop, tmp_dir, blob
|
||||||
)
|
)
|
||||||
self.assertFalse(blob.file_exists)
|
self.assertFalse(blob.file_exists)
|
||||||
|
# fixme: this is an emergency PR, plase move this to blob_file tests later
|
||||||
|
self.assertIsNone(blob.length)
|
||||||
|
|
Loading…
Reference in a new issue