aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/single-server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/single-server.ts')
-rw-r--r--server/tests/api/single-server.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/single-server.ts b/server/tests/api/single-server.ts
index 40e2c64fe..041d13225 100644
--- a/server/tests/api/single-server.ts
+++ b/server/tests/api/single-server.ts
@@ -33,6 +33,7 @@ import {
33 searchVideoWithSort, 33 searchVideoWithSort,
34 updateVideo 34 updateVideo
35} from '../utils' 35} from '../utils'
36import { viewVideo } from '../utils/videos'
36 37
37describe('Test a single server', function () { 38describe('Test a single server', function () {
38 let server: ServerInfo = null 39 let server: ServerInfo = null
@@ -214,6 +215,10 @@ describe('Test a single server', function () {
214 }) 215 })
215 216
216 it('Should have the views updated', async function () { 217 it('Should have the views updated', async function () {
218 await viewVideo(server.url, videoId)
219 await viewVideo(server.url, videoId)
220 await viewVideo(server.url, videoId)
221
217 const res = await getVideo(server.url, videoId) 222 const res = await getVideo(server.url, videoId)
218 223
219 const video = res.body 224 const video = res.body