summaryrefslogtreecommitdiffstats
path: root/deluge
diff options
context:
space:
mode:
Diffstat (limited to 'deluge')
-rw-r--r--deluge/tests/data/unicode_file.torrent2
-rw-r--r--deluge/tests/test_torrent.py7
2 files changed, 5 insertions, 4 deletions
diff --git a/deluge/tests/data/unicode_file.torrent b/deluge/tests/data/unicode_file.torrent
index 41db239da..e62fb1f8b 100644
--- a/deluge/tests/data/unicode_file.torrent
+++ b/deluge/tests/data/unicode_file.torrent
@@ -1 +1 @@
-d13:creation datei1540200743e8:encoding5:UTF-84:infod6:lengthi0e4:name35:সুকুমার রায়.mkv12:piece lengthi32768e6:pieces0:7:privatei0eee
+d13:creation datei1627211242e8:encoding5:UTF-84:infod6:lengthi32e4:name35:সুকুমার রায়.txt12:piece lengthi32768e6:pieces20:",.xe2U7:privatei0eee
diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py
index 3d47a8ae3..8e3eb4b1f 100644
--- a/deluge/tests/test_torrent.py
+++ b/deluge/tests/test_torrent.py
@@ -100,6 +100,7 @@ class TorrentTestCase(BaseTestCase):
# Test with handle.piece_priorities as handle.file_priorities async
# updates and will return old value. Also need to remove a priority
# value as one file is much smaller than piece size so doesn't show.
+ time.sleep(0.6) # Delay to wait for alert from lt
piece_prio = handle.piece_priorities()
result = all(p in piece_prio for p in [3, 2, 0, 5, 6, 7])
self.assertTrue(result)
@@ -184,8 +185,8 @@ class TorrentTestCase(BaseTestCase):
torrent_id = self.core.add_torrent_file(filename, filedump, options)
torrent = self.core.torrentmanager.torrents[torrent_id]
- time.sleep(0.5) # Delay to wait for lt to finish check on Travis.
- self.assert_state(torrent, 'Seeding')
+ # time.sleep(0.5) # Delay to wait for lt to finish check on Travis.
+ # self.assert_state(torrent, 'Seeding')
# Force an error by reading (non-existant) piece from disk
torrent.handle.read_piece(0)
@@ -330,7 +331,7 @@ class TorrentTestCase(BaseTestCase):
atp = self.get_torrent_atp('unicode_file.torrent')
handle = self.session.add_torrent(atp)
self.torrent = Torrent(handle, {})
- self.assertEqual(self.torrent.get_name(), 'সুকুমার রায়.mkv')
+ self.assertEqual(self.torrent.get_name(), 'সুকুমার রায়.txt')
def test_rename_unicode(self):
"""Test renaming file/folders with unicode filenames."""