1
0
Fork 0

Fix tracker test

This commit is contained in:
Chocobozzz 2024-07-31 16:00:31 +02:00
parent 417ddb3404
commit 5276f236f0
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -107,6 +107,7 @@ describe('Test tracker', function () {
torrent.on('error', done)
torrent.on('warning', warn => {
const message = typeof warn === 'string' ? warn : warn.message
if (message.includes('Unsupported tracker protocol')) return done()
if (message.includes('Error connecting')) return done()
})
})