summaryrefslogtreecommitdiffstats
path: root/deluge/tests/test_torrent.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/tests/test_torrent.py')
-rw-r--r--deluge/tests/test_torrent.py7
1 files changed, 4 insertions, 3 deletions
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."""