if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated)
- await federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, undefined)
+ await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t))
if (wasConfidentialVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(videoInstanceUpdated)
const strategy = 'most-views'
before(function () {
- this.timeout(120000)
+ this.timeout(240000)
return createServers(strategy)
})
const strategy = 'trending'
before(function () {
- this.timeout(120000)
+ this.timeout(240000)
return createServers(strategy)
})
const strategy = 'recently-added'
before(function () {
- this.timeout(120000)
+ this.timeout(240000)
return createServers(strategy, { min_views: 3 })
})
const strategy = 'recently-added'
before(async function () {
- this.timeout(120000)
+ this.timeout(240000)
await createServers(strategy, { min_views: 3 }, false)
})
describe('With manual strategy', function () {
before(function () {
- this.timeout(120000)
+ this.timeout(240000)
return createServers(null)
})
}
before(async function () {
- this.timeout(120000)
+ this.timeout(240000)
await createServers(strategy, { min_lifetime: '7 seconds', min_views: 0 })
const strategy = 'recently-added'
before(async function () {
- this.timeout(120000)
+ this.timeout(240000)
await createServers(strategy, { min_lifetime: '7 seconds', min_views: 0 })
})
it('Should cache video 2 webseeds on the first video', async function () {
- this.timeout(120000)
+ this.timeout(240000)
await waitJobs(servers)
this.timeout(10000)
const reason = 'my super bad reason'
- await server.abuses.report({ videoId, reason })
+ await server.abuses.report({ token: userAccessToken, videoId, reason })
await waitJobs(server)
expect(emails).to.have.lengthOf(3)
import 'mocha'
import * as chai from 'chai'
-import { cleanupTests, createSingleServer, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
+import {
+ cleanupTests,
+ createSingleServer,
+ doubleFollow,
+ PeerTubeServer,
+ setAccessTokensToServers,
+ wait,
+ waitJobs
+} from '@shared/extra-utils'
import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models'
const expect = chai.expect
describe('Privacy update', function () {
it('Should update the private and internal videos to public on server 1', async function () {
- this.timeout(10000)
+ this.timeout(100000)
now = Date.now()
await servers[0].videos.update({ id: internalVideoId, attributes })
}
+ await wait(10000)
await waitJobs(servers)
})