aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/videos/video-files.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/tests/api/videos/video-files.ts b/server/tests/api/videos/video-files.ts
index 313f020e9..d204a54de 100644
--- a/server/tests/api/videos/video-files.ts
+++ b/server/tests/api/videos/video-files.ts
@@ -34,6 +34,8 @@ describe('Test videos files', function () {
34 let validId2: string 34 let validId2: string
35 35
36 before(async function () { 36 before(async function () {
37 this.timeout(120_000)
38
37 { 39 {
38 const { uuid } = await servers[0].videos.quickUpload({ name: 'video 1' }) 40 const { uuid } = await servers[0].videos.quickUpload({ name: 'video 1' })
39 validId1 = uuid 41 validId1 = uuid
@@ -83,6 +85,8 @@ describe('Test videos files', function () {
83 let hlsId: string 85 let hlsId: string
84 86
85 before(async function () { 87 before(async function () {
88 this.timeout(120_000)
89
86 { 90 {
87 const { uuid } = await servers[0].videos.quickUpload({ name: 'webtorrent' }) 91 const { uuid } = await servers[0].videos.quickUpload({ name: 'webtorrent' })
88 webtorrentId = uuid 92 webtorrentId = uuid
@@ -97,6 +101,8 @@ describe('Test videos files', function () {
97 }) 101 })
98 102
99 it('Shoulde delete a webtorrent file', async function () { 103 it('Shoulde delete a webtorrent file', async function () {
104 this.timeout(30_000)
105
100 const video = await servers[0].videos.get({ id: webtorrentId }) 106 const video = await servers[0].videos.get({ id: webtorrentId })
101 const files = video.files 107 const files = video.files
102 108
@@ -113,6 +119,8 @@ describe('Test videos files', function () {
113 }) 119 })
114 120
115 it('Should delete all webtorrent files', async function () { 121 it('Should delete all webtorrent files', async function () {
122 this.timeout(30_000)
123
116 const video = await servers[0].videos.get({ id: webtorrentId }) 124 const video = await servers[0].videos.get({ id: webtorrentId })
117 const files = video.files 125 const files = video.files
118 126
@@ -130,6 +138,8 @@ describe('Test videos files', function () {
130 }) 138 })
131 139
132 it('Should delete a hls file', async function () { 140 it('Should delete a hls file', async function () {
141 this.timeout(30_000)
142
133 const video = await servers[0].videos.get({ id: hlsId }) 143 const video = await servers[0].videos.get({ id: hlsId })
134 const files = video.streamingPlaylists[0].files 144 const files = video.streamingPlaylists[0].files
135 const toDelete = files[0] 145 const toDelete = files[0]
@@ -152,6 +162,8 @@ describe('Test videos files', function () {
152 }) 162 })
153 163
154 it('Should delete all hls files', async function () { 164 it('Should delete all hls files', async function () {
165 this.timeout(30_000)
166
155 const video = await servers[0].videos.get({ id: hlsId }) 167 const video = await servers[0].videos.get({ id: hlsId })
156 const files = video.streamingPlaylists[0].files 168 const files = video.streamingPlaylists[0].files
157 169
@@ -169,6 +181,8 @@ describe('Test videos files', function () {
169 }) 181 })
170 182
171 it('Should not delete last file of a video', async function () { 183 it('Should not delete last file of a video', async function () {
184 this.timeout(60_000)
185
172 const webtorrentOnly = await servers[0].videos.get({ id: hlsId }) 186 const webtorrentOnly = await servers[0].videos.get({ id: hlsId })
173 const hlsOnly = await servers[0].videos.get({ id: webtorrentId }) 187 const hlsOnly = await servers[0].videos.get({ id: webtorrentId })
174 188