aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-13 10:06:50 +0200
committerChocobozzz <me@florianbigard.com>2018-06-13 10:22:53 +0200
commit3cd0734fd9b0ff21aaef02317a874e8f1c06e027 (patch)
tree9e8622d269919addd35b462141ab5f22236aa6f4 /server/initializers
parent2186386cca113506791583cb07d6ccacba7af4e0 (diff)
downloadPeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.tar.gz
PeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.tar.zst
PeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.zip
Improve tests when waiting pending jobs
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 8dbc1b060..65f89ff7f 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -449,14 +449,21 @@ const FEEDS = {
449// Special constants for a test instance 449// Special constants for a test instance
450if (isTestInstance() === true) { 450if (isTestInstance() === true) {
451 ACTOR_FOLLOW_SCORE.BASE = 20 451 ACTOR_FOLLOW_SCORE.BASE = 20
452
452 REMOTE_SCHEME.HTTP = 'http' 453 REMOTE_SCHEME.HTTP = 'http'
453 REMOTE_SCHEME.WS = 'ws' 454 REMOTE_SCHEME.WS = 'ws'
455
454 STATIC_MAX_AGE = '0' 456 STATIC_MAX_AGE = '0'
457
455 ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2 458 ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2
456 ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 10 * 1000 // 10 seconds 459 ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 10 * 1000 // 10 seconds
460
457 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB 461 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB
462
458 SCHEDULER_INTERVAL = 10000 463 SCHEDULER_INTERVAL = 10000
459 VIDEO_VIEW_LIFETIME = 1000 // 1 second 464 VIDEO_VIEW_LIFETIME = 1000 // 1 second
465
466 JOB_ATTEMPTS['email'] = 1
460} 467}
461 468
462updateWebserverConfig() 469updateWebserverConfig()