File tree 1 file changed +5
-5
lines changed
src/tribler-core/tribler_core/modules/popularity
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,18 @@ async def test_torrents_health_gossip(self):
58
58
Test whether torrent health information is correctly gossiped around
59
59
"""
60
60
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
63
63
64
64
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
67
67
68
68
await self .init_first_node_and_gossip (checked_torrent_info )
69
69
70
70
# Check whether node 1 has new torrent health information
71
71
with db_session :
72
- torrent = db2 .select ().first ()
72
+ torrent = node1_db2 .select ().first ()
73
73
assert torrent .infohash == checked_torrent_info [0 ]
74
74
assert torrent .seeders == checked_torrent_info [1 ]
75
75
assert torrent .leechers == checked_torrent_info [2 ]
You can’t perform that action at this time.
0 commit comments