]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix print transcode command test
authorChocobozzz <me@florianbigard.com>
Tue, 9 Aug 2022 12:46:49 +0000 (14:46 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 9 Aug 2022 12:49:25 +0000 (14:49 +0200)
server/tests/api/videos/single-server.ts
server/tests/cli/print-transcode-command.ts

index 0e429fef75864baf85eea300e6d33ef026efc6b8..c1d86776a00d1031d7c85c0f967001598bbc39c7 100644 (file)
@@ -11,7 +11,8 @@ import {
   PeerTubeServer,
   setAccessTokensToServers,
   setDefaultAccountAvatar,
-  setDefaultChannelAvatar
+  setDefaultChannelAvatar,
+  waitJobs
 } from '@shared/server-commands'
 
 const expect = chai.expect
@@ -358,6 +359,8 @@ describe('Test a single server', function () {
     it('Should have the video updated', async function () {
       this.timeout(60000)
 
+      await waitJobs([ server ])
+
       const video = await server.videos.get({ id: videoId })
 
       await completeVideoCheck(server, video, updateCheckAttributes())
index 27896f0310f804ca482dc53a9e1530268800cc7b..d5b5845770bb0afbd7fd1e5e774b1097e4844eee 100644 (file)
@@ -27,8 +27,8 @@ describe('Test print transcode jobs', function () {
       expect(command).to.includes('-r 25')
       expect(command).to.includes('-level:v 3.1')
       expect(command).to.includes('-g:v 50')
-      expect(command).to.includes(`-maxrate `)
-      expect(command).to.includes(`-bufsize `)
+      expect(command).to.includes(`-maxrate:v `)
+      expect(command).to.includes(`-bufsize:v `)
     }
   })
 })