Fix tests

pull/2646/head
Chocobozzz 2020-04-20 09:04:38 +02:00
parent 7a9f9c4626
commit 0dd57e4d43
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 11 additions and 10 deletions

View File

@ -36,7 +36,7 @@ async function processActivityPubFollow (job: Bull.Job) {
} }
if (payload.assertIsChannel && !targetActor.VideoChannel) { if (payload.assertIsChannel && !targetActor.VideoChannel) {
logger.warn('Do not follow %s@%s because it is not a channel.', name, host) logger.warn('Do not follow %s@%s because it is not a channel.', payload.name, host)
return return
} }

View File

@ -1024,15 +1024,16 @@ describe('Test users notifications', function () {
await removeUserSubscription(servers[1].url, servers[1].accessToken, 'user_1_channel@localhost:' + servers[0].port) await removeUserSubscription(servers[1].url, servers[1].accessToken, 'user_1_channel@localhost:' + servers[0].port)
}) })
it('Should notify when a local account is following one of our channel', async function () { // PeerTube does not support accout -> account follows
this.timeout(10000) // it('Should notify when a local account is following one of our channel', async function () {
// this.timeout(10000)
await addUserSubscription(servers[0].url, servers[0].accessToken, 'user_1@localhost:' + servers[0].port) //
// await addUserSubscription(servers[0].url, servers[0].accessToken, 'user_1@localhost:' + servers[0].port)
await waitJobs(servers) //
// await waitJobs(servers)
await checkNewActorFollow(baseParams, 'account', 'root', 'super root name', myUserName, 'presence') //
}) // await checkNewActorFollow(baseParams, 'account', 'root', 'super root name', myUserName, 'presence')
// })
it('Should notify when a remote account is following one of our channel', async function () { it('Should notify when a remote account is following one of our channel', async function () {
this.timeout(10000) this.timeout(10000)