Skip to content

Commit 27d5f3a

Browse files
committed
Rename variables in test_torrents_health_gossip
1 parent 79df831 commit 27d5f3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tribler-core/tribler_core/modules/popularity/test_popularity_community.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ async def test_torrents_health_gossip(self):
5858
Test whether torrent health information is correctly gossiped around
5959
"""
6060
checked_torrent_info = (b'a' * 20, 200, 0, int(time.time()))
61-
db1 = self.nodes[0].overlay.mds.TorrentState
62-
db2 = self.nodes[1].overlay.mds.TorrentState
61+
node0_db = self.nodes[0].overlay.mds.TorrentState
62+
node1_db2 = self.nodes[1].overlay.mds.TorrentState
6363

6464
with db_session:
65-
assert db1.select().count() == 0
66-
assert db2.select().count() == 0
65+
assert node0_db.select().count() == 0
66+
assert node1_db2.select().count() == 0
6767

6868
await self.init_first_node_and_gossip(checked_torrent_info)
6969

7070
# Check whether node 1 has new torrent health information
7171
with db_session:
72-
torrent = db2.select().first()
72+
torrent = node1_db2.select().first()
7373
assert torrent.infohash == checked_torrent_info[0]
7474
assert torrent.seeders == checked_torrent_info[1]
7575
assert torrent.leechers == checked_torrent_info[2]

0 commit comments

Comments
 (0)