const resComment = await addVideoCommentThread(servers[0].url, userAccessToken, video.id, 'comment abuse ' + uuidv4())
const comment = resComment.body.comment
+ await waitJobs(servers)
+
await reportAbuse({ url: servers[0].url, token: servers[0].accessToken, commentId: comment.id, reason: 'super reason' })
await waitJobs(servers)
})
it('Should send unblacklist but not published/subscription notes after unblacklisted if scheduled update pending', async function () {
- this.timeout(20000)
+ this.timeout(40000)
const updateAt = new Date(new Date().getTime() + 1000000)
})
it('Should not send publish/subscription notifications after scheduled update if video still auto-blacklisted', async function () {
- this.timeout(20000)
+ this.timeout(40000)
// In 2 seconds
const updateAt = new Date(new Date().getTime() + 2000)
})
it('Should not send a notification to moderators on new video without auto-blacklist', async function () {
- this.timeout(20000)
+ this.timeout(60000)
const name = 'video without auto-blacklist ' + uuidv4()