add more tests in test_reflector, make sure stream info is not affected for blob client v1

This commit is contained in:
Kay Kurokawa 2017-09-20 15:50:54 -04:00 committed by Jack Robison
parent 9bf159433d
commit 474ce21a51
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF

View file

@ -248,6 +248,15 @@ class TestReflector(unittest.TestCase):
return d
def test_blob_reflector_v1(self):
@defer.inlineCallbacks
def verify_stream_on_reflector():
# this protocol should not have any impact on stream info manager
streams = yield self.server_stream_info_manager.get_all_streams()
self.assertEqual(0, len(streams))
# there should be no should announce blobs here
blob_hashes = yield self.server_blob_manager._get_all_should_announce_blob_hashes()
self.assertEqual(0, len(blob_hashes))
def verify_data_on_reflector():
check_blob_ds = []
for blob_hash, blob_size in self.expected_blobs: