From 474ce21a51ff8bb6557352955e88322fbb7f3382 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Wed, 20 Sep 2017 15:50:54 -0400 Subject: [PATCH] add more tests in test_reflector, make sure stream info is not affected for blob client v1 --- tests/functional/test_reflector.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/functional/test_reflector.py b/tests/functional/test_reflector.py index 5cdd038c7..a86ed2520 100644 --- a/tests/functional/test_reflector.py +++ b/tests/functional/test_reflector.py @@ -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: