aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/live
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-11 15:02:53 +0200
committerChocobozzz <me@florianbigard.com>2023-05-11 15:03:47 +0200
commit823c34c07fc0df81110098ee1032e9d3ed70b662 (patch)
tree4d15bc0e09766552434ee50ad5f6098bd2f74ac4 /server/tests/api/live
parent81f14b911211be065448e92bcc253f470c5ff2a9 (diff)
downloadPeerTube-823c34c07fc0df81110098ee1032e9d3ed70b662.tar.gz
PeerTube-823c34c07fc0df81110098ee1032e9d3ed70b662.tar.zst
PeerTube-823c34c07fc0df81110098ee1032e9d3ed70b662.zip
Fix reset sequelize instance
Diffstat (limited to 'server/tests/api/live')
-rw-r--r--server/tests/api/live/live-fast-restream.ts7
1 files changed, 3 insertions, 4 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
3import { expect } from 'chai' 3import { expect } from 'chai'
4import { wait } from '@shared/core-utils' 4import { wait } from '@shared/core-utils'
5import { HttpStatusCode, LiveVideoCreate, VideoPrivacy } from '@shared/models' 5import { LiveVideoCreate, VideoPrivacy } from '@shared/models'
6import { 6import {
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)