aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/single-server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-29 16:26:25 +0200
committerChocobozzz <me@florianbigard.com>2018-08-30 15:03:18 +0200
commit6b6168606bc86430f6b7821c9d5f1c80d0425ebf (patch)
tree9aea6cf0875c9fee30c373eb4924b12d47d1e23c /server/tests/api/videos/single-server.ts
parent2d9fea161fd4fc73994fc77951bafdccdc2071fd (diff)
downloadPeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.tar.gz
PeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.tar.zst
PeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.zip
Bufferize videos views in redis
Diffstat (limited to 'server/tests/api/videos/single-server.ts')
-rw-r--r--server/tests/api/videos/single-server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts
index a757ad9da..89408fec6 100644
--- a/server/tests/api/videos/single-server.ts
+++ b/server/tests/api/videos/single-server.ts
@@ -196,7 +196,7 @@ describe('Test a single server', function () {
196 }) 196 })
197 197
198 it('Should have the views updated', async function () { 198 it('Should have the views updated', async function () {
199 this.timeout(10000) 199 this.timeout(20000)
200 200
201 await viewVideo(server.url, videoId) 201 await viewVideo(server.url, videoId)
202 await viewVideo(server.url, videoId) 202 await viewVideo(server.url, videoId)
@@ -212,6 +212,9 @@ describe('Test a single server', function () {
212 await viewVideo(server.url, videoId) 212 await viewVideo(server.url, videoId)
213 await viewVideo(server.url, videoId) 213 await viewVideo(server.url, videoId)
214 214
215 // Wait the repeatable job
216 await wait(8000)
217
215 const res = await getVideo(server.url, videoId) 218 const res = await getVideo(server.url, videoId)
216 219
217 const video = res.body 220 const video = res.body