aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-18 15:22:36 +0100
committerChocobozzz <me@florianbigard.com>2018-01-18 16:43:26 +0100
commit2c897999fe877c52c8f7458d8bbff6c9367b6587 (patch)
tree3f66304fcea68a608bfd0f800e991731d910cc3d /server/tests
parent54e740594bc2eacd8026b5d2d6cfdfc06416a65b (diff)
downloadPeerTube-2c897999fe877c52c8f7458d8bbff6c9367b6587.tar.gz
PeerTube-2c897999fe877c52c8f7458d8bbff6c9367b6587.tar.zst
PeerTube-2c897999fe877c52c8f7458d8bbff6c9367b6587.zip
Optimize SQL query that fetch actor outbox
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/server/follows.ts4
-rw-r--r--server/tests/api/server/handle-down.ts4
2 files changed, 1 insertions, 7 deletions
diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts
index c0115e534..b26af1a16 100644
--- a/server/tests/api/server/follows.ts
+++ b/server/tests/api/server/follows.ts
@@ -4,7 +4,7 @@ import * as chai from 'chai'
4import 'mocha' 4import 'mocha'
5import { Video, VideoPrivacy } from '../../../../shared/models/videos' 5import { Video, VideoPrivacy } from '../../../../shared/models/videos'
6import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' 6import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
7import { checkVideoFilesWereRemoved, completeVideoCheck } from '../../utils' 7import { completeVideoCheck } from '../../utils'
8 8
9import { 9import {
10 flushAndRunMultipleServers, flushTests, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo, 10 flushAndRunMultipleServers, flushTests, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo,
@@ -353,8 +353,6 @@ describe('Test follows', function () {
353 353
354 let res = await getVideosList(servers[ 0 ].url) 354 let res = await getVideosList(servers[ 0 ].url)
355 expect(res.body.total).to.equal(1) 355 expect(res.body.total).to.equal(1)
356
357 await checkVideoFilesWereRemoved(video4.uuid, servers[0].serverNumber)
358 }) 356 })
359 357
360 }) 358 })
diff --git a/server/tests/api/server/handle-down.ts b/server/tests/api/server/handle-down.ts
index 6ca8cfb64..e99e517e4 100644
--- a/server/tests/api/server/handle-down.ts
+++ b/server/tests/api/server/handle-down.ts
@@ -187,10 +187,6 @@ describe('Test handle downs', function () {
187 187
188 await wait(5000) 188 await wait(5000)
189 189
190 const res = await getVideosList(servers[1].url)
191 expect(res.body.data).to.be.an('array')
192 expect(res.body.data).to.have.lengthOf(2)
193
194 const resVideo = await getVideo(servers[1].url, videos[0].uuid) 190 const resVideo = await getVideo(servers[1].url, videos[0].uuid)
195 expect(resVideo.body).not.to.be.undefined 191 expect(resVideo.body).not.to.be.undefined
196 192