From 9524f03eac6d513b89c733fb0adb008fd4ef29ef Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 8 Feb 2022 23:14:18 -0300 Subject: [PATCH] fix test_announces --- tests/integration/datanetwork/test_file_commands.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/integration/datanetwork/test_file_commands.py b/tests/integration/datanetwork/test_file_commands.py index 2a0a500a0..a57718f6b 100644 --- a/tests/integration/datanetwork/test_file_commands.py +++ b/tests/integration/datanetwork/test_file_commands.py @@ -107,18 +107,12 @@ class FileCommands(CommandTestCase): self.assertEqual(await self.daemon.storage.get_blobs_to_announce(), []) await self.stream_create('foo', '0.01') stream = (await self.daemon.jsonrpc_file_list())["items"][0] - self.assertSetEqual( - set(await self.daemon.storage.get_blobs_to_announce()), - {stream.sd_hash, stream.descriptor.blobs[0].blob_hash} - ) + self.assertSetEqual(set(await self.daemon.storage.get_blobs_to_announce()), {stream.sd_hash}) self.assertTrue(await self.daemon.jsonrpc_file_delete(delete_all=True)) # announces on download self.assertEqual(await self.daemon.storage.get_blobs_to_announce(), []) stream = await self.daemon.jsonrpc_get('foo') - self.assertSetEqual( - set(await self.daemon.storage.get_blobs_to_announce()), - {stream.sd_hash, stream.descriptor.blobs[0].blob_hash} - ) + self.assertSetEqual(set(await self.daemon.storage.get_blobs_to_announce()), {stream.sd_hash}) async def _purge_file(self, claim_name, full_path): self.assertTrue(