fix for test_blobmanager

This commit is contained in:
Kay Kurokawa 2017-06-30 15:49:42 -04:00
parent d21b1bcef1
commit 99c2130be7

View file

@ -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])