diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/live/live-fast-restream.ts | 7 | ||||
-rw-r--r-- | server/tests/api/videos/single-server.ts | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/server/tests/api/live/live-fast-restream.ts b/server/tests/api/live/live-fast-restream.ts index 4e30feaef..2169393c2 100644 --- a/server/tests/api/live/live-fast-restream.ts +++ b/server/tests/api/live/live-fast-restream.ts | |||
@@ -2,11 +2,10 @@ | |||
2 | 2 | ||
3 | import { expect } from 'chai' | 3 | import { expect } from 'chai' |
4 | import { wait } from '@shared/core-utils' | 4 | import { wait } from '@shared/core-utils' |
5 | import { HttpStatusCode, LiveVideoCreate, VideoPrivacy } from '@shared/models' | 5 | import { LiveVideoCreate, VideoPrivacy } from '@shared/models' |
6 | import { | 6 | import { |
7 | cleanupTests, | 7 | cleanupTests, |
8 | createSingleServer, | 8 | createSingleServer, |
9 | makeRawRequest, | ||
10 | PeerTubeServer, | 9 | PeerTubeServer, |
11 | setAccessTokensToServers, | 10 | setAccessTokensToServers, |
12 | setDefaultVideoChannel, | 11 | setDefaultVideoChannel, |
@@ -81,8 +80,8 @@ describe('Fast restream in live', function () { | |||
81 | 80 | ||
82 | try { | 81 | try { |
83 | await server.live.getSegmentFile({ videoUUID: liveId, segment: 0, playlistNumber: 0 }) | 82 | await server.live.getSegmentFile({ videoUUID: liveId, segment: 0, playlistNumber: 0 }) |
84 | await makeRawRequest({ url: video.streamingPlaylists[0].playlistUrl, expectedStatus: HttpStatusCode.OK_200 }) | 83 | await server.streamingPlaylists.get({ url: video.streamingPlaylists[0].playlistUrl }) |
85 | await makeRawRequest({ url: video.streamingPlaylists[0].segmentsSha256Url, expectedStatus: HttpStatusCode.OK_200 }) | 84 | await server.streamingPlaylists.getSegmentSha256({ url: video.streamingPlaylists[0].segmentsSha256Url }) |
86 | } catch (err) { | 85 | } catch (err) { |
87 | // FIXME: try to debug error in CI "Unexpected end of JSON input" | 86 | // FIXME: try to debug error in CI "Unexpected end of JSON input" |
88 | console.error(err) | 87 | console.error(err) |
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index 72f833ec2..9fd52933f 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts | |||
@@ -213,7 +213,7 @@ describe('Test a single server', function () { | |||
213 | }) | 213 | }) |
214 | 214 | ||
215 | it('Should upload 6 videos', async function () { | 215 | it('Should upload 6 videos', async function () { |
216 | this.timeout(25000) | 216 | this.timeout(50000) |
217 | 217 | ||
218 | const videos = new Set([ | 218 | const videos = new Set([ |
219 | 'video_short.mp4', 'video_short.ogv', 'video_short.webm', | 219 | 'video_short.mp4', 'video_short.ogv', 'video_short.webm', |