aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-28 18:50:44 +0200
committerChocobozzz <me@florianbigard.com>2018-05-28 18:50:44 +0200
commit53a613171e5d3e2d31c04d85ed883dd9a37cf1fb (patch)
tree7fbe33128110ccbe0f9c49c47ea2df394657f8a0 /server/tests/api/videos
parent1ab6d6bb6b78e4cd7079884fbf99aa89717dab26 (diff)
downloadPeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.tar.gz
PeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.tar.zst
PeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.zip
Fix publishedAt value after following a new instance
Diffstat (limited to 'server/tests/api/videos')
-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