Delay assert in test_torrent for Travis

This commit is contained in:
Calum Lind 2017-12-16 17:29:30 +00:00
parent c13622a1e6
commit 7787aa975f
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ class TorrentTestCase(BaseTestCase):
torrent_id = self.core.add_torrent_file(filename, filedump, options) torrent_id = self.core.add_torrent_file(filename, filedump, options)
torrent = self.core.torrentmanager.torrents[torrent_id] 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') self.assert_state(torrent, 'Seeding')
# Force an error by reading (non-existant) piece from disk # Force an error by reading (non-existant) piece from disk