From 54e740594bc2eacd8026b5d2d6cfdfc06416a65b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 18 Jan 2018 14:59:27 +0100 Subject: Avoid too many requests and fetching outbox --- server/tests/api/server/follows.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'server/tests/api') 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' import 'mocha' import { Video, VideoPrivacy } from '../../../../shared/models/videos' import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' -import { checkVideoFilesWereRemoved, completeVideoCheck, getVideoChannelsList } from '../../utils' +import { checkVideoFilesWereRemoved, completeVideoCheck } from '../../utils' import { flushAndRunMultipleServers, flushTests, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo, @@ -12,7 +12,7 @@ import { } from '../../utils/index' import { dateIsValid } from '../../utils/miscs/miscs' import { follow, getFollowersListPaginationAndSort, getFollowingListPaginationAndSort, unfollow } from '../../utils/server/follows' -import { expectAccountFollows, getAccountsList } from '../../utils/users/accounts' +import { expectAccountFollows } from '../../utils/users/accounts' import { userLogin } from '../../utils/users/login' import { createUser } from '../../utils/users/users' import { @@ -354,12 +354,6 @@ describe('Test follows', function () { let res = await getVideosList(servers[ 0 ].url) expect(res.body.total).to.equal(1) - res = await getVideoChannelsList(servers[0].url, 0, 1) - expect(res.body.total).to.equal(2) - - res = await getAccountsList(servers[0].url) - expect(res.body.total).to.equal(2) - await checkVideoFilesWereRemoved(video4.uuid, servers[0].serverNumber) }) -- cgit v1.2.3