import 'mocha'
import * as chai from 'chai'
-import { HttpStatusCode } from '@shared/models'
-import { cleanupTests, doubleFollow, createSingleServer, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
-import { VideoCreateResult, VideoPrivacy } from '@shared/models'
+import {
+ cleanupTests,
+ createSingleServer,
+ doubleFollow,
+ PeerTubeServer,
+ setAccessTokensToServers,
+ wait,
+ waitJobs
+} from '@shared/extra-utils'
+import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models'
const expect = chai.expect
})
it('Should not be able to get this unlisted video using its id', async function () {
- await servers[1].videos.get({ id: unlistedVideo.id, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
+ await servers[1].videos.get({ id: unlistedVideo.id, expectedStatus: HttpStatusCode.NOT_FOUND_404 })
})
it('Should be able to get this unlisted video using its uuid/shortUUID', async function () {
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)
})