mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-29 20:14:02 -06:00
Remove low timeouts
Default timeout is 30s
This commit is contained in:
parent
679f8800cd
commit
33b91e53d2
@ -150,8 +150,6 @@ describe('Test AP refresher', function () {
|
||||
})
|
||||
|
||||
after(async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await sqlCommandServer2.cleanup()
|
||||
|
||||
await cleanupTests(servers)
|
||||
|
@ -220,8 +220,6 @@ describe('Test ActivityPub security', function () {
|
||||
|
||||
describe('When checking Linked Data Signature', function () {
|
||||
before(async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await setKeysOfServer(sqlCommands[0], servers[1].url, keys.publicKey, keys.privateKey)
|
||||
await setKeysOfServer(sqlCommands[1], servers[1].url, keys.publicKey, keys.privateKey)
|
||||
await setKeysOfServer(sqlCommands[2], servers[2].url, keys.publicKey, keys.privateKey)
|
||||
@ -232,8 +230,6 @@ describe('Test ActivityPub security', function () {
|
||||
})
|
||||
|
||||
it('Should fail with bad keys', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await setKeysOfServer(sqlCommands[0], servers[2].url, invalidKeys.publicKey, invalidKeys.privateKey)
|
||||
await setKeysOfServer(sqlCommands[2], servers[2].url, invalidKeys.publicKey, invalidKeys.privateKey)
|
||||
|
||||
@ -254,8 +250,6 @@ describe('Test ActivityPub security', function () {
|
||||
})
|
||||
|
||||
it('Should fail with an altered body', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await setKeysOfServer(sqlCommands[0], servers[2].url, keys.publicKey, keys.privateKey)
|
||||
await setKeysOfServer(sqlCommands[0], servers[2].url, keys.publicKey, keys.privateKey)
|
||||
|
||||
@ -278,8 +272,6 @@ describe('Test ActivityPub security', function () {
|
||||
})
|
||||
|
||||
it('Should succeed with a valid signature', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const body = getAnnounceWithoutContext(servers[1])
|
||||
body.actor = servers[2].url + '/accounts/peertube'
|
||||
|
||||
|
@ -466,8 +466,6 @@ describe('Test server plugins API validators', function () {
|
||||
})
|
||||
|
||||
it('Should succeed with the correct parameters', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const it = [
|
||||
{ suffix: 'install', status: HttpStatusCode.OK_200 },
|
||||
{ suffix: 'update', status: HttpStatusCode.OK_200 },
|
||||
|
@ -219,8 +219,6 @@ describe('Test videos API validator', function () {
|
||||
describe('Search target', function () {
|
||||
|
||||
it('Should fail/succeed depending on the search target', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const query = { search: 'coucou' }
|
||||
const paths = [
|
||||
'/api/v1/search/video-playlists/',
|
||||
|
@ -181,8 +181,6 @@ describe('Test live', function () {
|
||||
})
|
||||
|
||||
it('Should update the live', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await commands[0].update({ videoId: liveVideoUUID, fields: { saveReplay: false, latencyMode: LiveVideoLatencyMode.DEFAULT } })
|
||||
await waitJobs(servers)
|
||||
})
|
||||
@ -206,8 +204,6 @@ describe('Test live', function () {
|
||||
})
|
||||
|
||||
it('Delete the live', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[0].videos.remove({ id: liveVideoUUID })
|
||||
await waitJobs(servers)
|
||||
})
|
||||
|
@ -124,8 +124,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should report abuse on a remote video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const reason = 'my super bad reason 2'
|
||||
const videoId = await servers[0].videos.getId({ uuid: servers[1].store.videoCreated.uuid })
|
||||
await commands[0].report({ videoId, reason })
|
||||
@ -197,8 +195,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should hide video abuses from blocked accounts', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
{
|
||||
const videoId = await servers[1].videos.getId({ uuid: servers[0].store.videoCreated.uuid })
|
||||
await commands[1].report({ videoId, reason: 'will mute this' })
|
||||
@ -250,8 +246,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should keep the video abuse when deleting the video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[1].videos.remove({ id: abuseServer2.video.uuid })
|
||||
|
||||
await waitJobs(servers)
|
||||
@ -268,8 +262,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should include counts of reports from reporter and reportee', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
// register a second user to have two reporters/reportees
|
||||
const user = { username: 'user2', password: 'password' }
|
||||
await servers[0].users.create({ ...user })
|
||||
@ -307,8 +299,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should list predefined reasons as well as timestamps for the reported video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const reason5 = 'my super bad reason 5'
|
||||
const predefinedReasons5: AbusePredefinedReasonsString[] = [ 'violentOrRepulsive', 'captions' ]
|
||||
const createRes = await commands[0].report({
|
||||
@ -331,8 +321,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should delete the video abuse', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await commands[1].delete({ abuseId: abuseServer2.id })
|
||||
|
||||
await waitJobs(servers)
|
||||
@ -351,8 +339,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should list and filter video abuses', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
async function list (query: Parameters<AbusesCommand['getAdminList']>[0]) {
|
||||
const body = await commands[0].getAdminList(query)
|
||||
|
||||
@ -457,8 +443,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should report abuse on a remote comment', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const comment = await getComment(servers[0], servers[1].store.videoCreated.uuid)
|
||||
|
||||
const reason = 'it is a really bad comment'
|
||||
@ -525,8 +509,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should keep the comment abuse when deleting the comment', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const commentServer2 = await getComment(servers[0], servers[1].store.videoCreated.uuid)
|
||||
|
||||
await servers[0].comments.delete({ videoId: servers[1].store.videoCreated.uuid, commentId: commentServer2.id })
|
||||
@ -546,8 +528,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should delete the comment abuse', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await commands[1].delete({ abuseId: abuseServer2.id })
|
||||
|
||||
await waitJobs(servers)
|
||||
@ -645,8 +625,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should report abuse on a remote account', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const account = await getAccountFromServer(servers[0], 'user_2', servers[1])
|
||||
|
||||
const reason = 'it is a really bad account'
|
||||
@ -699,8 +677,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should keep the account abuse when deleting the account', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const account = await getAccountFromServer(servers[1], 'user_2', servers[1])
|
||||
await servers[1].users.remove({ userId: account.userId })
|
||||
|
||||
@ -715,8 +691,6 @@ describe('Test abuses', function () {
|
||||
})
|
||||
|
||||
it('Should delete the account abuse', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await commands[1].delete({ abuseId: abuseServer2.id })
|
||||
|
||||
await waitJobs(servers)
|
||||
|
@ -113,8 +113,6 @@ describe('Test blocklist notifications', function () {
|
||||
})
|
||||
|
||||
it('Should block an account', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[0].blocklist.addToMyBlocklist({ token: userToken1, account: 'user3@' + servers[1].host })
|
||||
await waitJobs(servers)
|
||||
})
|
||||
@ -146,8 +144,6 @@ describe('Test blocklist notifications', function () {
|
||||
})
|
||||
|
||||
it('Should block an account', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[0].blocklist.addToMyBlocklist({ token: userToken1, server: servers[1].host })
|
||||
await waitJobs(servers)
|
||||
})
|
||||
@ -186,8 +182,6 @@ describe('Test blocklist notifications', function () {
|
||||
})
|
||||
|
||||
it('Should block an account', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[0].blocklist.addToServerBlocklist({ account: 'user3@' + servers[1].host })
|
||||
await waitJobs(servers)
|
||||
})
|
||||
@ -221,8 +215,6 @@ describe('Test blocklist notifications', function () {
|
||||
})
|
||||
|
||||
it('Should block an account', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[0].blocklist.addToServerBlocklist({ server: servers[1].host })
|
||||
await waitJobs(servers)
|
||||
})
|
||||
|
@ -439,8 +439,6 @@ describe('Test blocklist', function () {
|
||||
})
|
||||
|
||||
it('Should hide its comments', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const { id } = await commentsCommand[1].createThread({ token: userToken2, videoId: videoUUID1, text: 'hidden comment 2' })
|
||||
|
||||
await waitJobs(servers)
|
||||
@ -767,8 +765,6 @@ describe('Test blocklist', function () {
|
||||
})
|
||||
|
||||
it('Should hide its comments', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const { id } = await commentsCommand[1].createThread({ token: userToken2, videoId: videoUUID1, text: 'hidden comment 2' })
|
||||
|
||||
await waitJobs(servers)
|
||||
|
@ -32,8 +32,6 @@ describe('Test index search', function () {
|
||||
describe('Default search', async function () {
|
||||
|
||||
it('Should make a local videos search by default', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await server.config.updateCustomSubConfig({
|
||||
newConfig: {
|
||||
search: {
|
||||
|
@ -31,8 +31,6 @@ describe('Test contact form', function () {
|
||||
})
|
||||
|
||||
it('Should send a contact form', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await command.send({
|
||||
fromEmail: 'toto@example.com',
|
||||
body: 'my super message',
|
||||
@ -61,8 +59,6 @@ describe('Test contact form', function () {
|
||||
})
|
||||
|
||||
it('Should not be able to send another contact form because of the anti spam checker', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await wait(1000)
|
||||
|
||||
await command.send({
|
||||
|
@ -124,8 +124,6 @@ describe('Test emails', function () {
|
||||
describe('When creating a user without password', function () {
|
||||
|
||||
it('Should send a create password email', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await server.users.create({ username: 'create_password', password: '' })
|
||||
|
||||
await waitJobs(server)
|
||||
@ -179,8 +177,6 @@ describe('Test emails', function () {
|
||||
describe('When creating an abuse', function () {
|
||||
|
||||
it('Should send the notification email', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const reason = 'my super bad reason'
|
||||
await server.abuses.report({ token: userAccessToken, videoId, reason })
|
||||
|
||||
@ -200,8 +196,6 @@ describe('Test emails', function () {
|
||||
describe('When blocking/unblocking user', function () {
|
||||
|
||||
it('Should send the notification email when blocking a user', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const reason = 'my super bad reason'
|
||||
await server.users.banUser({ userId, reason })
|
||||
|
||||
@ -219,8 +213,6 @@ describe('Test emails', function () {
|
||||
})
|
||||
|
||||
it('Should send the notification email when unblocking a user', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await server.users.unbanUser({ userId })
|
||||
|
||||
await waitJobs(server)
|
||||
@ -238,8 +230,6 @@ describe('Test emails', function () {
|
||||
|
||||
describe('When blacklisting a video', function () {
|
||||
it('Should send the notification email', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const reason = 'my super reason'
|
||||
await server.blacklist.add({ videoId: videoUserUUID, reason })
|
||||
|
||||
@ -257,8 +247,6 @@ describe('Test emails', function () {
|
||||
})
|
||||
|
||||
it('Should send the notification email', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await server.blacklist.remove({ videoId: videoUserUUID })
|
||||
|
||||
await waitJobs(server)
|
||||
@ -282,8 +270,6 @@ describe('Test emails', function () {
|
||||
describe('When verifying a user email', function () {
|
||||
|
||||
it('Should ask to send the verification email', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await server.users.askSendVerifyEmail({ email: 'user_1@example.com' })
|
||||
|
||||
await waitJobs(server)
|
||||
@ -337,8 +323,6 @@ describe('Test emails', function () {
|
||||
})
|
||||
|
||||
it('Should ask to send the verification email', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await server.registrations.askSendVerifyEmail({ email: 'request_1@example.com' })
|
||||
|
||||
await waitJobs(server)
|
||||
|
@ -111,8 +111,6 @@ describe('Test follows moderation', function () {
|
||||
})
|
||||
|
||||
it('Should remove follower on server 2', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await commands[1].removeFollower({ follower: servers[0] })
|
||||
|
||||
await waitJobs(servers)
|
||||
@ -126,8 +124,6 @@ describe('Test follows moderation', function () {
|
||||
describe('Disabled/Enabled followers', function () {
|
||||
|
||||
it('Should disable followers on server 2', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const subConfig = {
|
||||
followers: {
|
||||
instance: {
|
||||
@ -146,8 +142,6 @@ describe('Test follows moderation', function () {
|
||||
})
|
||||
|
||||
it('Should re enable followers on server 2', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const subConfig = {
|
||||
followers: {
|
||||
instance: {
|
||||
@ -193,8 +187,6 @@ describe('Test follows moderation', function () {
|
||||
})
|
||||
|
||||
it('Should accept a follower', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await commands[1].acceptFollower({ follower: 'peertube@' + servers[0].host })
|
||||
await waitJobs(servers)
|
||||
|
||||
|
@ -114,8 +114,6 @@ describe('Test logs', function () {
|
||||
})
|
||||
|
||||
it('Should log ping requests', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const now = new Date()
|
||||
|
||||
await server.servers.ping()
|
||||
|
@ -189,8 +189,6 @@ describe('Test plugins', function () {
|
||||
})
|
||||
|
||||
it('Should have watched settings changes', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await server.servers.waitUntilLog('Settings changed!')
|
||||
})
|
||||
|
||||
|
@ -27,7 +27,6 @@ describe('Test tracker', function () {
|
||||
})
|
||||
|
||||
it('Should succeed with the correct infohash', function (done) {
|
||||
this.timeout(10000)
|
||||
const webtorrent = new WebTorrent()
|
||||
|
||||
const torrent = webtorrent.add(goodMagnet)
|
||||
|
@ -60,8 +60,6 @@ describe('Test HLS videos', function () {
|
||||
})
|
||||
|
||||
it('Should delete videos', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
for (const uuid of videoUUIDs) {
|
||||
await servers[0].videos.remove({ id: uuid })
|
||||
}
|
||||
|
@ -90,8 +90,6 @@ describe('Test users email verification', function () {
|
||||
})
|
||||
|
||||
it('Should be able to change the user email', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
let updateVerificationString: string
|
||||
|
||||
{
|
||||
|
@ -66,8 +66,6 @@ describe('Test users with multiple servers', function () {
|
||||
})
|
||||
|
||||
it('Should be able to update my display name', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[0].users.updateMe({ displayName: 'my super display name' })
|
||||
|
||||
user = await servers[0].users.getMyInfo()
|
||||
|
@ -136,8 +136,6 @@ describe('Test a single server', function () {
|
||||
})
|
||||
|
||||
it('Should upload the video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const attributes = {
|
||||
name: 'my super name',
|
||||
category: 2,
|
||||
|
@ -130,14 +130,10 @@ describe('Test video change ownership - nominal', function () {
|
||||
})
|
||||
|
||||
it('Should accept the same change ownership request without crashing', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await command.create({ token: firstUserToken, videoId: servers[0].store.videoCreated.id, username: secondUser })
|
||||
})
|
||||
|
||||
it('Should not create multiple change ownership requests while one is waiting', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const body = await command.list({ token: secondUserToken })
|
||||
|
||||
expect(body.total).to.equal(1)
|
||||
@ -146,14 +142,10 @@ describe('Test video change ownership - nominal', function () {
|
||||
})
|
||||
|
||||
it('Should not be possible to refuse the change of ownership from first user', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await command.refuse({ token: firstUserToken, ownershipId: lastRequestId, expectedStatus: HttpStatusCode.FORBIDDEN_403 })
|
||||
})
|
||||
|
||||
it('Should be possible to refuse the change of ownership from second user', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await command.refuse({ token: secondUserToken, ownershipId: lastRequestId })
|
||||
})
|
||||
|
||||
@ -184,8 +176,6 @@ describe('Test video change ownership - nominal', function () {
|
||||
})
|
||||
|
||||
it('Should not be possible to accept the change of ownership from first user', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await command.accept({
|
||||
token: firstUserToken,
|
||||
ownershipId: lastRequestId,
|
||||
@ -195,8 +185,6 @@ describe('Test video change ownership - nominal', function () {
|
||||
})
|
||||
|
||||
it('Should be possible to accept the change of ownership from second user', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await command.accept({ token: secondUserToken, ownershipId: lastRequestId, channelId: secondUserChannelId })
|
||||
|
||||
await waitJobs(servers)
|
||||
@ -309,8 +297,6 @@ describe('Test video change ownership - quota too small', function () {
|
||||
})
|
||||
|
||||
it('Should not be possible to accept the change of ownership from second user because of exceeded quota', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const { videoChannels } = await server.users.getMyInfo({ token: secondUserToken })
|
||||
const channelId = videoChannels[0].id
|
||||
|
||||
|
@ -378,8 +378,6 @@ describe('Test video channels', function () {
|
||||
})
|
||||
|
||||
it('Should list the second video channel videos', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
for (const server of servers) {
|
||||
const channelURI = 'second_video_channel@' + servers[0].host
|
||||
const { total, data } = await server.videos.listByChannel({ handle: channelURI })
|
||||
@ -392,16 +390,12 @@ describe('Test video channels', function () {
|
||||
})
|
||||
|
||||
it('Should change the video channel of a video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[0].videos.update({ id: videoUUID, attributes: { channelId: servers[0].store.channel.id } })
|
||||
|
||||
await waitJobs(servers)
|
||||
})
|
||||
|
||||
it('Should list the first video channel videos', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
for (const server of servers) {
|
||||
{
|
||||
const secondChannelURI = 'second_video_channel@' + servers[0].host
|
||||
@ -452,8 +446,6 @@ describe('Test video channels', function () {
|
||||
})
|
||||
|
||||
it('Should report correct channel views per days', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
{
|
||||
const { data } = await servers[0].channels.listByAccount({ accountName, withStats: true })
|
||||
|
||||
|
@ -78,8 +78,6 @@ describe('Test video description', function () {
|
||||
})
|
||||
|
||||
it('Should update with a short description', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const attributes = {
|
||||
description: 'short description'
|
||||
}
|
||||
|
@ -99,8 +99,6 @@ describe('Test video privacy', function () {
|
||||
})
|
||||
|
||||
it('Should not be able to watch the private video with another user', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const user = {
|
||||
username: 'hello',
|
||||
password: 'super password'
|
||||
@ -254,8 +252,6 @@ describe('Test video privacy', function () {
|
||||
})
|
||||
|
||||
it('Should set these videos as private and internal', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await servers[0].videos.update({ id: internalVideoId, attributes: { privacy: VideoPrivacy.PRIVATE } })
|
||||
await servers[0].videos.update({ id: privateVideoId, attributes: { privacy: VideoPrivacy.INTERNAL } })
|
||||
|
||||
|
@ -35,8 +35,6 @@ describe('Test video update scheduler', function () {
|
||||
})
|
||||
|
||||
it('Should upload a video and schedule an update in 10 seconds', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const attributes = {
|
||||
name: 'video 1',
|
||||
privacy: VideoPrivacy.PRIVATE,
|
||||
@ -89,8 +87,6 @@ describe('Test video update scheduler', function () {
|
||||
})
|
||||
|
||||
it('Should upload a video without scheduling an update', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const attributes = {
|
||||
name: 'video 2',
|
||||
privacy: VideoPrivacy.PRIVATE
|
||||
@ -103,8 +99,6 @@ describe('Test video update scheduler', function () {
|
||||
})
|
||||
|
||||
it('Should update a video by scheduling an update', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
const attributes = {
|
||||
name: 'video 2 updated',
|
||||
scheduleUpdate: {
|
||||
|
@ -47,7 +47,7 @@ describe('Test a videos overview', function () {
|
||||
})
|
||||
|
||||
it('Should upload another video and include all videos in the overview', async function () {
|
||||
this.timeout(60000)
|
||||
this.timeout(120000)
|
||||
|
||||
{
|
||||
for (let i = 1; i < 6; i++) {
|
||||
|
@ -321,15 +321,11 @@ describe('Test CLI wrapper', function () {
|
||||
})
|
||||
|
||||
after(async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await cleanupTests([ anotherServer ])
|
||||
})
|
||||
})
|
||||
|
||||
after(async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await cleanupTests([ server ])
|
||||
})
|
||||
})
|
||||
|
@ -71,8 +71,6 @@ describe('Official plugin auto-block videos', function () {
|
||||
})
|
||||
|
||||
it('Should auto block a video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await check(servers[0], server2Videos[0].uuid, true)
|
||||
|
||||
blocklistServer.replace({
|
||||
@ -98,8 +96,6 @@ describe('Official plugin auto-block videos', function () {
|
||||
})
|
||||
|
||||
it('Should not block a local video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await check(servers[0], server1Videos[0].uuid, true)
|
||||
|
||||
blocklistServer.replace({
|
||||
@ -116,8 +112,6 @@ describe('Official plugin auto-block videos', function () {
|
||||
})
|
||||
|
||||
it('Should remove a video block', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await check(servers[0], server2Videos[0].uuid, false)
|
||||
|
||||
blocklistServer.replace({
|
||||
|
@ -50,8 +50,6 @@ describe('Official plugin auto-mute', function () {
|
||||
})
|
||||
|
||||
it('Should add a server blocklist', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
blocklistServer.replace({
|
||||
data: [
|
||||
{
|
||||
@ -67,8 +65,6 @@ describe('Official plugin auto-mute', function () {
|
||||
})
|
||||
|
||||
it('Should remove a server blocklist', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
blocklistServer.replace({
|
||||
data: [
|
||||
{
|
||||
@ -85,8 +81,6 @@ describe('Official plugin auto-mute', function () {
|
||||
})
|
||||
|
||||
it('Should add an account blocklist', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
blocklistServer.replace({
|
||||
data: [
|
||||
{
|
||||
@ -102,8 +96,6 @@ describe('Official plugin auto-mute', function () {
|
||||
})
|
||||
|
||||
it('Should remove an account blocklist', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
blocklistServer.replace({
|
||||
data: [
|
||||
{
|
||||
|
@ -290,8 +290,6 @@ describe('Test external auth plugins', function () {
|
||||
})
|
||||
|
||||
it('Should reject token of Kefka by the plugin hook', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await wait(5000)
|
||||
|
||||
await server.users.getMyInfo({ token: kefkaAccessToken, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
|
||||
|
@ -163,8 +163,6 @@ describe('Test id and pass auth plugins', function () {
|
||||
})
|
||||
|
||||
it('Should reject token of laguna by the plugin hook', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await wait(5000)
|
||||
|
||||
await server.users.getMyInfo({ token: lagunaAccessToken, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
|
||||
|
@ -219,7 +219,6 @@ describe('Test plugin helpers', function () {
|
||||
})
|
||||
|
||||
it('Should mute server 2', async function () {
|
||||
this.timeout(10000)
|
||||
await postCommand(servers[0], 'blockServer', { hostToBlock: servers[1].host })
|
||||
|
||||
const { data } = await servers[0].videos.list()
|
||||
@ -254,8 +253,6 @@ describe('Test plugin helpers', function () {
|
||||
})
|
||||
|
||||
it('Should blacklist video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await postCommand(servers[0], 'blacklist', { videoUUID: videoUUIDServer1, unfederate: true })
|
||||
|
||||
await waitJobs(servers)
|
||||
@ -269,8 +266,6 @@ describe('Test plugin helpers', function () {
|
||||
})
|
||||
|
||||
it('Should unblacklist video', async function () {
|
||||
this.timeout(10000)
|
||||
|
||||
await postCommand(servers[0], 'unblacklist', { videoUUID: videoUUIDServer1 })
|
||||
|
||||
await waitJobs(servers)
|
||||
|
@ -39,5 +39,5 @@ export async function checkPeerTubeRunnerCacheIsEmpty (runner: PeerTubeRunnerPro
|
||||
|
||||
const files = await readdir(directoryPath)
|
||||
|
||||
expect(files).to.have.lengthOf(0)
|
||||
expect(files, 'Directory content: ' + files.join(', ')).to.have.lengthOf(0)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user