Fix tracker test
This commit is contained in:
parent
417ddb3404
commit
5276f236f0
|
@ -107,6 +107,7 @@ describe('Test tracker', function () {
|
||||||
torrent.on('error', done)
|
torrent.on('error', done)
|
||||||
torrent.on('warning', warn => {
|
torrent.on('warning', warn => {
|
||||||
const message = typeof warn === 'string' ? warn : warn.message
|
const message = typeof warn === 'string' ? warn : warn.message
|
||||||
|
if (message.includes('Unsupported tracker protocol')) return done()
|
||||||
if (message.includes('Error connecting')) return done()
|
if (message.includes('Error connecting')) return done()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue