forked from LBRYCommunity/lbry-sdk
fix for test_blobmanager
This commit is contained in:
parent
d21b1bcef1
commit
99c2130be7
1 changed files with 4 additions and 3 deletions
|
@ -100,7 +100,7 @@ class BlobManagerTest(unittest.TestCase):
|
|||
|
||||
# open the last blob
|
||||
blob = yield self.bm.get_blob(blob_hashes[-1])
|
||||
yield blob.open_for_writing(self.peer)
|
||||
finished_d, write, cancel = yield blob.open_for_writing(self.peer)
|
||||
|
||||
# delete the last blob and check if it still exists
|
||||
out = yield self.bm.delete_blobs([blob_hash])
|
||||
|
@ -110,3 +110,4 @@ class BlobManagerTest(unittest.TestCase):
|
|||
self.assertTrue(os.path.isfile(os.path.join(self.blob_dir,blob_hashes[-1])))
|
||||
|
||||
|
||||
blob._close_writer(blob.writers[self.peer][0])
|
||||
|
|
Loading…
Reference in a new issue