aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/videos/single-server.ts5
-rw-r--r--server/tests/cli/print-transcode-command.ts4
2 files changed, 6 insertions, 3 deletions
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts
index 0e429fef7..c1d86776a 100644
--- a/server/tests/api/videos/single-server.ts
+++ b/server/tests/api/videos/single-server.ts
@@ -11,7 +11,8 @@ import {
11 PeerTubeServer, 11 PeerTubeServer,
12 setAccessTokensToServers, 12 setAccessTokensToServers,
13 setDefaultAccountAvatar, 13 setDefaultAccountAvatar,
14 setDefaultChannelAvatar 14 setDefaultChannelAvatar,
15 waitJobs
15} from '@shared/server-commands' 16} from '@shared/server-commands'
16 17
17const expect = chai.expect 18const expect = chai.expect
@@ -358,6 +359,8 @@ describe('Test a single server', function () {
358 it('Should have the video updated', async function () { 359 it('Should have the video updated', async function () {
359 this.timeout(60000) 360 this.timeout(60000)
360 361
362 await waitJobs([ server ])
363
361 const video = await server.videos.get({ id: videoId }) 364 const video = await server.videos.get({ id: videoId })
362 365
363 await completeVideoCheck(server, video, updateCheckAttributes()) 366 await completeVideoCheck(server, video, updateCheckAttributes())
diff --git a/server/tests/cli/print-transcode-command.ts b/server/tests/cli/print-transcode-command.ts
index 27896f031..d5b584577 100644
--- a/server/tests/cli/print-transcode-command.ts
+++ b/server/tests/cli/print-transcode-command.ts
@@ -27,8 +27,8 @@ describe('Test print transcode jobs', function () {
27 expect(command).to.includes('-r 25') 27 expect(command).to.includes('-r 25')
28 expect(command).to.includes('-level:v 3.1') 28 expect(command).to.includes('-level:v 3.1')
29 expect(command).to.includes('-g:v 50') 29 expect(command).to.includes('-g:v 50')
30 expect(command).to.includes(`-maxrate `) 30 expect(command).to.includes(`-maxrate:v `)
31 expect(command).to.includes(`-bufsize `) 31 expect(command).to.includes(`-bufsize:v `)
32 } 32 }
33 }) 33 })
34}) 34})