aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-26 11:37:31 +0100
committerChocobozzz <me@florianbigard.com>2021-01-26 11:37:31 +0100
commite9cb361cf51d11ef603128fb6715c103becf5123 (patch)
treed71b8aca37891dc5e6316786077b86087d07963a /server/initializers
parentddb62a85c5517d3437feb7d487a8a11881b68fcb (diff)
downloadPeerTube-e9cb361cf51d11ef603128fb6715c103becf5123.tar.gz
PeerTube-e9cb361cf51d11ef603128fb6715c103becf5123.tar.zst
PeerTube-e9cb361cf51d11ef603128fb6715c103becf5123.zip
Fix tests
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index c06eb6fb0..0b4b41273 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -274,8 +274,6 @@ const CONSTRAINTS_FIELDS = {
274 DURATION: { min: 0 }, // Number 274 DURATION: { min: 0 }, // Number
275 TAGS: { min: 0, max: 5 }, // Number of total tags 275 TAGS: { min: 0, max: 5 }, // Number of total tags
276 TAG: { min: 2, max: 30 }, // Length 276 TAG: { min: 2, max: 30 }, // Length
277 THUMBNAIL: { min: 2, max: 30 },
278 THUMBNAIL_DATA: { min: 0, max: 20000 }, // Bytes
279 VIEWS: { min: 0 }, 277 VIEWS: { min: 0 },
280 LIKES: { min: 0 }, 278 LIKES: { min: 0 },
281 DISLIKES: { min: 0 }, 279 DISLIKES: { min: 0 },
@@ -750,6 +748,7 @@ if (isTestInstance() === true) {
750 ACTIVITY_PUB.VIDEO_PLAYLIST_REFRESH_INTERVAL = 10 * 1000 // 10 seconds 748 ACTIVITY_PUB.VIDEO_PLAYLIST_REFRESH_INTERVAL = 10 * 1000 // 10 seconds
751 749
752 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB 750 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB
751 CONSTRAINTS_FIELDS.VIDEOS.IMAGE.FILE_SIZE.max = 400 * 1024 // 400KB
753 752
754 SCHEDULER_INTERVALS_MS.actorFollowScores = 1000 753 SCHEDULER_INTERVALS_MS.actorFollowScores = 1000
755 SCHEDULER_INTERVALS_MS.removeOldJobs = 10000 754 SCHEDULER_INTERVALS_MS.removeOldJobs = 10000