From 8108aa39c185d9a06999875485384df0bdb492a8 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 13 Feb 2019 14:21:21 -0300 Subject: [PATCH] verify all blobs got transferred --- tests/unit/stream/test_downloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/stream/test_downloader.py b/tests/unit/stream/test_downloader.py index eb09e64d3..3acd08717 100644 --- a/tests/unit/stream/test_downloader.py +++ b/tests/unit/stream/test_downloader.py @@ -97,4 +97,6 @@ class TestStreamDownloader(BlobExchangeTestBase): self.transport.write(bytes([byte])) self.server.server_protocol_class = ChunkedServerProtocol self.server.start_server(33333, '127.0.0.1') + self.assertEqual(0, len(self.client_blob_manager.completed_blob_hashes)) await self._test_transfer_stream(10) + self.assertEqual(11, len(self.client_blob_manager.completed_blob_hashes))