- const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution)
- expect(torrent.announce[0]).to.equal('ws://localhost:9002/tracker/socket')
+ const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution.id)
+ const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket')
+ expect(announceWS).to.not.be.undefined
+
+ const announceHttp = torrent.announce.find(a => a === 'http://localhost:9002/tracker/announce')
+ expect(announceHttp).to.not.be.undefined
+