aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/server/redundancy.ts22
1 files changed, 13 insertions, 9 deletions
diff --git a/server/tests/api/server/redundancy.ts b/server/tests/api/server/redundancy.ts
index c0ab251e6..6ce4b9dd1 100644
--- a/server/tests/api/server/redundancy.ts
+++ b/server/tests/api/server/redundancy.ts
@@ -6,15 +6,16 @@ import { VideoDetails } from '../../../../shared/models/videos'
6import { 6import {
7 doubleFollow, 7 doubleFollow,
8 flushAndRunMultipleServers, 8 flushAndRunMultipleServers,
9 flushTests,
10 getFollowingListPaginationAndSort, 9 getFollowingListPaginationAndSort,
11 getVideo, 10 getVideo,
11 immutableAssign,
12 killallServers, 12 killallServers,
13 root,
13 ServerInfo, 14 ServerInfo,
14 setAccessTokensToServers, 15 setAccessTokensToServers,
15 uploadVideo, 16 uploadVideo,
16 wait, 17 viewVideo,
17 root, viewVideo, immutableAssign 18 wait
18} from '../../utils' 19} from '../../utils'
19import { waitJobs } from '../../utils/server/jobs' 20import { waitJobs } from '../../utils/server/jobs'
20import * as magnetUtil from 'magnet-uri' 21import * as magnetUtil from 'magnet-uri'
@@ -44,12 +45,15 @@ function checkMagnetWebseeds (file: { magnetUri: string, resolution: { id: numbe
44async function runServers (strategy: VideoRedundancyStrategy, additionalParams: any = {}) { 45async function runServers (strategy: VideoRedundancyStrategy, additionalParams: any = {}) {
45 const config = { 46 const config = {
46 redundancy: { 47 redundancy: {
47 videos: [ 48 videos: {
48 immutableAssign({ 49 check_interval: '5 seconds',
49 strategy: strategy, 50 strategies: [
50 size: '100KB' 51 immutableAssign({
51 }, additionalParams) 52 strategy: strategy,
52 ] 53 size: '100KB'
54 }, additionalParams)
55 ]
56 }
53 } 57 }
54 } 58 }
55 servers = await flushAndRunMultipleServers(3, config) 59 servers = await flushAndRunMultipleServers(3, config)