]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix missing wait jobs
authorChocobozzz <me@florianbigard.com>
Fri, 19 May 2023 12:59:15 +0000 (14:59 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 19 May 2023 13:05:32 +0000 (15:05 +0200)
server/tests/api/notifications/comments-notifications.ts
server/tests/api/notifications/moderation-notifications.ts
server/tests/api/notifications/user-notifications.ts
server/tests/api/runners/runner-vod-transcoding.ts
server/tests/api/server/auto-follows.ts
server/tests/api/users/user-videos.ts
server/tests/plugins/plugin-helpers.ts

index 65007193adeb8a23cc715b126fb5ceb3e5ef4cdc..0a4bfc5e4d1baa0cd93a5dd6a6500676b9542bbc 100644 (file)
@@ -170,7 +170,7 @@ describe('Test comments notifications', function () {
     let baseParams: CheckerBaseParams
     const byAccountDisplayName = 'super root name'
 
-    before(async () => {
+    before(async function () {
       baseParams = {
         server: servers[0],
         emails,
index d80de821e4f0da69b99a17922af5319f2e8bb6d1..e7a5c47e953f87ddd10a1687bdbfe15e8745d27c 100644 (file)
@@ -331,7 +331,7 @@ describe('Test moderation notifications', function () {
     let config: any
     let baseParams: CheckerBaseParams
 
-    before(async () => {
+    before(async function () {
       baseParams = {
         server: servers[0],
         emails,
@@ -427,7 +427,7 @@ describe('Test moderation notifications', function () {
     let videoName: string
     let currentCustomConfig: CustomConfig
 
-    before(async () => {
+    before(async function () {
 
       adminBaseParamsServer1 = {
         server: servers[0],
index 7a8a234c216f440bce63136e13fa139832398b72..55da102659ad077adb8f7c827b239a7a7e002c7b 100644 (file)
@@ -484,7 +484,7 @@ describe('Test user notifications', function () {
     const myChannelName = 'super channel name'
     const myUserName = 'super user name'
 
-    before(async () => {
+    before(async function () {
       baseParams = {
         server: servers[0],
         emails,
index 58478ba4a981cb97caccb5834e74f2d86c7618ae..43e005bbee98d15ce529964029183b8ac32a9bda 100644 (file)
@@ -228,6 +228,8 @@ describe('Test runner VOD transcoding', function () {
         const payload: VODWebVideoTranscodingSuccess = { videoFile: `video_short_${resolution}p.mp4` }
         await servers[0].runnerJobs.success({ runnerToken, jobUUID, jobToken, payload })
       }
+
+      await waitJobs(servers)
     })
 
     it('Should have the video updated', async function () {
index 99d5c3142bf4bfff286f22c410bb049594647243..6ce1a3799bcf6b6e80e850214aca1f05192c6032 100644 (file)
@@ -127,7 +127,7 @@ describe('Test auto follows', function () {
     const instanceIndexServer = new MockInstancesIndex()
     let port: number
 
-    before(async () => {
+    before(async function () {
       port = await instanceIndexServer.initialize()
     })
 
index 0351ae853580ef297f8c09489585ed05ff2e1ac0..6969495044df47d552b51eff1282e1230cd3b13a 100644 (file)
@@ -114,7 +114,7 @@ describe('Test user videos', function () {
   describe('My videos & quotas', function () {
 
     it('Should be able to upload a video with a user', async function () {
-      this.timeout(10000)
+      this.timeout(30000)
 
       const attributes = {
         name: 'super user video',
index e25992723d0759c2f043641b0d909c1b4949d4e5..a47b7d4d2ffe040d612718598b624a7653c78f8d 100644 (file)
@@ -287,7 +287,7 @@ describe('Test plugin helpers', function () {
     let videoUUID: string
     let videoPath: string
 
-    before(async () => {
+    before(async function () {
       this.timeout(240000)
 
       await servers[0].config.enableTranscoding()