aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-18 14:59:27 +0100
committerChocobozzz <me@florianbigard.com>2018-01-18 15:42:20 +0100
commit54e740594bc2eacd8026b5d2d6cfdfc06416a65b (patch)
tree486ce489a59653c667728be8f54ab038d37e1a99 /server/tests
parentf05a1c30c15d2ae35c11e241ca039a72eeb7d6ad (diff)
downloadPeerTube-54e740594bc2eacd8026b5d2d6cfdfc06416a65b.tar.gz
PeerTube-54e740594bc2eacd8026b5d2d6cfdfc06416a65b.tar.zst
PeerTube-54e740594bc2eacd8026b5d2d6cfdfc06416a65b.zip
Avoid too many requests and fetching outbox
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/server/follows.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts
index ac614d605..c0115e534 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, getVideoChannelsList } from '../../utils' 7import { checkVideoFilesWereRemoved, completeVideoCheck } from '../../utils'
8 8
9import { 9import {
10 flushAndRunMultipleServers, flushTests, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo, 10 flushAndRunMultipleServers, flushTests, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo,
@@ -12,7 +12,7 @@ import {
12} from '../../utils/index' 12} from '../../utils/index'
13import { dateIsValid } from '../../utils/miscs/miscs' 13import { dateIsValid } from '../../utils/miscs/miscs'
14import { follow, getFollowersListPaginationAndSort, getFollowingListPaginationAndSort, unfollow } from '../../utils/server/follows' 14import { follow, getFollowersListPaginationAndSort, getFollowingListPaginationAndSort, unfollow } from '../../utils/server/follows'
15import { expectAccountFollows, getAccountsList } from '../../utils/users/accounts' 15import { expectAccountFollows } from '../../utils/users/accounts'
16import { userLogin } from '../../utils/users/login' 16import { userLogin } from '../../utils/users/login'
17import { createUser } from '../../utils/users/users' 17import { createUser } from '../../utils/users/users'
18import { 18import {
@@ -354,12 +354,6 @@ describe('Test follows', function () {
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 356
357 res = await getVideoChannelsList(servers[0].url, 0, 1)
358 expect(res.body.total).to.equal(2)
359
360 res = await getAccountsList(servers[0].url)
361 expect(res.body.total).to.equal(2)
362
363 await checkVideoFilesWereRemoved(video4.uuid, servers[0].serverNumber) 357 await checkVideoFilesWereRemoved(video4.uuid, servers[0].serverNumber)
364 }) 358 })
365 359