Fix tracker test

pull/6527/head
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
1 changed files with 1 additions and 0 deletions

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()
})
})