aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-19 14:59:15 +0200
committerChocobozzz <me@florianbigard.com>2023-05-19 15:05:32 +0200
commitd1c64fd970fc236b9ba01ac944659051e9e04a99 (patch)
tree2ee2b40bf1e140b1eec71bfa8f97a4c76399abf9 /server
parent26818a73ba0d7fd53ca69eba0c8e525f3670b5a8 (diff)
downloadPeerTube-d1c64fd970fc236b9ba01ac944659051e9e04a99.tar.gz
PeerTube-d1c64fd970fc236b9ba01ac944659051e9e04a99.tar.zst
PeerTube-d1c64fd970fc236b9ba01ac944659051e9e04a99.zip
Fix missing wait jobs
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/notifications/comments-notifications.ts2
-rw-r--r--server/tests/api/notifications/moderation-notifications.ts4
-rw-r--r--server/tests/api/notifications/user-notifications.ts2
-rw-r--r--server/tests/api/runners/runner-vod-transcoding.ts2
-rw-r--r--server/tests/api/server/auto-follows.ts2
-rw-r--r--server/tests/api/users/user-videos.ts2
-rw-r--r--server/tests/plugins/plugin-helpers.ts2
7 files changed, 9 insertions, 7 deletions
diff --git a/server/tests/api/notifications/comments-notifications.ts b/server/tests/api/notifications/comments-notifications.ts
index 65007193a..0a4bfc5e4 100644
--- a/server/tests/api/notifications/comments-notifications.ts
+++ b/server/tests/api/notifications/comments-notifications.ts
@@ -170,7 +170,7 @@ describe('Test comments notifications', function () {
170 let baseParams: CheckerBaseParams 170 let baseParams: CheckerBaseParams
171 const byAccountDisplayName = 'super root name' 171 const byAccountDisplayName = 'super root name'
172 172
173 before(async () => { 173 before(async function () {
174 baseParams = { 174 baseParams = {
175 server: servers[0], 175 server: servers[0],
176 emails, 176 emails,
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts
index d80de821e..e7a5c47e9 100644
--- a/server/tests/api/notifications/moderation-notifications.ts
+++ b/server/tests/api/notifications/moderation-notifications.ts
@@ -331,7 +331,7 @@ describe('Test moderation notifications', function () {
331 let config: any 331 let config: any
332 let baseParams: CheckerBaseParams 332 let baseParams: CheckerBaseParams
333 333
334 before(async () => { 334 before(async function () {
335 baseParams = { 335 baseParams = {
336 server: servers[0], 336 server: servers[0],
337 emails, 337 emails,
@@ -427,7 +427,7 @@ describe('Test moderation notifications', function () {
427 let videoName: string 427 let videoName: string
428 let currentCustomConfig: CustomConfig 428 let currentCustomConfig: CustomConfig
429 429
430 before(async () => { 430 before(async function () {
431 431
432 adminBaseParamsServer1 = { 432 adminBaseParamsServer1 = {
433 server: servers[0], 433 server: servers[0],
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts
index 7a8a234c2..55da10265 100644
--- a/server/tests/api/notifications/user-notifications.ts
+++ b/server/tests/api/notifications/user-notifications.ts
@@ -484,7 +484,7 @@ describe('Test user notifications', function () {
484 const myChannelName = 'super channel name' 484 const myChannelName = 'super channel name'
485 const myUserName = 'super user name' 485 const myUserName = 'super user name'
486 486
487 before(async () => { 487 before(async function () {
488 baseParams = { 488 baseParams = {
489 server: servers[0], 489 server: servers[0],
490 emails, 490 emails,
diff --git a/server/tests/api/runners/runner-vod-transcoding.ts b/server/tests/api/runners/runner-vod-transcoding.ts
index 58478ba4a..43e005bbe 100644
--- a/server/tests/api/runners/runner-vod-transcoding.ts
+++ b/server/tests/api/runners/runner-vod-transcoding.ts
@@ -228,6 +228,8 @@ describe('Test runner VOD transcoding', function () {
228 const payload: VODWebVideoTranscodingSuccess = { videoFile: `video_short_${resolution}p.mp4` } 228 const payload: VODWebVideoTranscodingSuccess = { videoFile: `video_short_${resolution}p.mp4` }
229 await servers[0].runnerJobs.success({ runnerToken, jobUUID, jobToken, payload }) 229 await servers[0].runnerJobs.success({ runnerToken, jobUUID, jobToken, payload })
230 } 230 }
231
232 await waitJobs(servers)
231 }) 233 })
232 234
233 it('Should have the video updated', async function () { 235 it('Should have the video updated', async function () {
diff --git a/server/tests/api/server/auto-follows.ts b/server/tests/api/server/auto-follows.ts
index 99d5c3142..6ce1a3799 100644
--- a/server/tests/api/server/auto-follows.ts
+++ b/server/tests/api/server/auto-follows.ts
@@ -127,7 +127,7 @@ describe('Test auto follows', function () {
127 const instanceIndexServer = new MockInstancesIndex() 127 const instanceIndexServer = new MockInstancesIndex()
128 let port: number 128 let port: number
129 129
130 before(async () => { 130 before(async function () {
131 port = await instanceIndexServer.initialize() 131 port = await instanceIndexServer.initialize()
132 }) 132 })
133 133
diff --git a/server/tests/api/users/user-videos.ts b/server/tests/api/users/user-videos.ts
index 0351ae853..696949504 100644
--- a/server/tests/api/users/user-videos.ts
+++ b/server/tests/api/users/user-videos.ts
@@ -114,7 +114,7 @@ describe('Test user videos', function () {
114 describe('My videos & quotas', function () { 114 describe('My videos & quotas', function () {
115 115
116 it('Should be able to upload a video with a user', async function () { 116 it('Should be able to upload a video with a user', async function () {
117 this.timeout(10000) 117 this.timeout(30000)
118 118
119 const attributes = { 119 const attributes = {
120 name: 'super user video', 120 name: 'super user video',
diff --git a/server/tests/plugins/plugin-helpers.ts b/server/tests/plugins/plugin-helpers.ts
index e25992723..a47b7d4d2 100644
--- a/server/tests/plugins/plugin-helpers.ts
+++ b/server/tests/plugins/plugin-helpers.ts
@@ -287,7 +287,7 @@ describe('Test plugin helpers', function () {
287 let videoUUID: string 287 let videoUUID: string
288 let videoPath: string 288 let videoPath: string
289 289
290 before(async () => { 290 before(async function () {
291 this.timeout(240000) 291 this.timeout(240000)
292 292
293 await servers[0].config.enableTranscoding() 293 await servers[0].config.enableTranscoding()