diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-10 16:38:12 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-12-14 09:11:27 +0100 |
commit | 34caef7fc0710623c6894549423813d53f65b303 (patch) | |
tree | cadfce6e39ea0712ed556e8dc7ba3c64ea36e158 /server/tests/api | |
parent | 12554857b410506b9e748bb0deac09d3e7393963 (diff) | |
download | PeerTube-34caef7fc0710623c6894549423813d53f65b303.tar.gz PeerTube-34caef7fc0710623c6894549423813d53f65b303.tar.zst PeerTube-34caef7fc0710623c6894549423813d53f65b303.zip |
Add joblog at the end of ci
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/live/live.ts | 2 | ||||
-rw-r--r-- | server/tests/api/notifications/moderation-notifications.ts | 4 | ||||
-rw-r--r-- | server/tests/api/search/search-index.ts | 6 |
3 files changed, 7 insertions, 5 deletions
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts index 6a1f6e759..918792081 100644 --- a/server/tests/api/live/live.ts +++ b/server/tests/api/live/live.ts | |||
@@ -413,6 +413,8 @@ describe('Test live', function () { | |||
413 | await testVideoResolutions(liveVideoId, resolutions) | 413 | await testVideoResolutions(liveVideoId, resolutions) |
414 | 414 | ||
415 | await stopFfmpeg(command) | 415 | await stopFfmpeg(command) |
416 | await waitUntilLiveEnded(servers[0].url, servers[0].accessToken, liveVideoId) | ||
417 | |||
416 | await waitJobs(servers) | 418 | await waitJobs(servers) |
417 | 419 | ||
418 | await waitUntilLivePublished(servers[0].url, servers[0].accessToken, liveVideoId) | 420 | await waitUntilLivePublished(servers[0].url, servers[0].accessToken, liveVideoId) |
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index e7aa5d987..24c91a365 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts | |||
@@ -502,7 +502,7 @@ describe('Test moderation notifications', function () { | |||
502 | }) | 502 | }) |
503 | 503 | ||
504 | it('Should send notification to moderators on new video with auto-blacklist', async function () { | 504 | it('Should send notification to moderators on new video with auto-blacklist', async function () { |
505 | this.timeout(20000) | 505 | this.timeout(40000) |
506 | 506 | ||
507 | videoName = 'video with auto-blacklist ' + uuidv4() | 507 | videoName = 'video with auto-blacklist ' + uuidv4() |
508 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: videoName }) | 508 | const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: videoName }) |
@@ -525,7 +525,7 @@ describe('Test moderation notifications', function () { | |||
525 | }) | 525 | }) |
526 | 526 | ||
527 | it('Should send video published and unblacklist after video unblacklisted', async function () { | 527 | it('Should send video published and unblacklist after video unblacklisted', async function () { |
528 | this.timeout(20000) | 528 | this.timeout(40000) |
529 | 529 | ||
530 | await removeVideoFromBlacklist(servers[0].url, servers[0].accessToken, videoUUID) | 530 | await removeVideoFromBlacklist(servers[0].url, servers[0].accessToken, videoUUID) |
531 | 531 | ||
diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts index 40065d162..849a8a893 100644 --- a/server/tests/api/search/search-index.ts +++ b/server/tests/api/search/search-index.ts | |||
@@ -105,7 +105,7 @@ describe('Test videos search', function () { | |||
105 | describe('Videos search', async function () { | 105 | describe('Videos search', async function () { |
106 | 106 | ||
107 | it('Should make a simple search and not have results', async function () { | 107 | it('Should make a simple search and not have results', async function () { |
108 | const res = await searchVideo(server.url, 'a'.repeat(500)) | 108 | const res = await searchVideo(server.url, 'djidane'.repeat(50)) |
109 | 109 | ||
110 | expect(res.body.total).to.equal(0) | 110 | expect(res.body.total).to.equal(0) |
111 | expect(res.body.data).to.have.lengthOf(0) | 111 | expect(res.body.data).to.have.lengthOf(0) |
@@ -216,7 +216,7 @@ describe('Test videos search', function () { | |||
216 | { | 216 | { |
217 | await updateCustomSubConfig(server.url, server.accessToken, { instance: { defaultNSFWPolicy: 'display' } }) | 217 | await updateCustomSubConfig(server.url, server.accessToken, { instance: { defaultNSFWPolicy: 'display' } }) |
218 | 218 | ||
219 | const res = await searchVideo(server.url, 'NSFW search index') | 219 | const res = await searchVideo(server.url, 'NSFW search index', '-match') |
220 | const video = res.body.data[0] as Video | 220 | const video = res.body.data[0] as Video |
221 | 221 | ||
222 | expect(res.body.data).to.have.length.greaterThan(0) | 222 | expect(res.body.data).to.have.length.greaterThan(0) |
@@ -228,7 +228,7 @@ describe('Test videos search', function () { | |||
228 | { | 228 | { |
229 | await updateCustomSubConfig(server.url, server.accessToken, { instance: { defaultNSFWPolicy: 'do_not_list' } }) | 229 | await updateCustomSubConfig(server.url, server.accessToken, { instance: { defaultNSFWPolicy: 'do_not_list' } }) |
230 | 230 | ||
231 | const res = await searchVideo(server.url, 'NSFW search index') | 231 | const res = await searchVideo(server.url, 'NSFW search index', '-match') |
232 | 232 | ||
233 | try { | 233 | try { |
234 | expect(res.body.data).to.have.lengthOf(0) | 234 | expect(res.body.data).to.have.lengthOf(0) |