aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r--server/tests/api/videos/multiple-servers.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index 94d627e26..fc7c0cb21 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -105,6 +105,7 @@ describe('Test multiple servers', function () {
105 await wait(10000) 105 await wait(10000)
106 106
107 // All servers should have this video 107 // All servers should have this video
108 let publishedAt: string = null
108 for (const server of servers) { 109 for (const server of servers) {
109 const isLocal = server.url === 'http://localhost:9001' 110 const isLocal = server.url === 'http://localhost:9001'
110 const checkAttributes = { 111 const checkAttributes = {
@@ -120,6 +121,7 @@ describe('Test multiple servers', function () {
120 host: 'localhost:9001' 121 host: 'localhost:9001'
121 }, 122 },
122 isLocal, 123 isLocal,
124 publishedAt,
123 duration: 10, 125 duration: 10,
124 tags: [ 'tag1p1', 'tag2p1' ], 126 tags: [ 'tag1p1', 'tag2p1' ],
125 privacy: VideoPrivacy.PUBLIC, 127 privacy: VideoPrivacy.PUBLIC,
@@ -145,6 +147,7 @@ describe('Test multiple servers', function () {
145 const video = videos[0] 147 const video = videos[0]
146 148
147 await completeVideoCheck(server.url, video, checkAttributes) 149 await completeVideoCheck(server.url, video, checkAttributes)
150 publishedAt = video.publishedAt
148 } 151 }
149 }) 152 })
150 153