aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/feeds/feeds.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:47:51 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch)
treeeaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/feeds/feeds.ts
parent89d241a79c262b9775c233b73cff080043ebb5e6 (diff)
downloadPeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip
Use an object to represent a server
Diffstat (limited to 'server/tests/feeds/feeds.ts')
-rw-r--r--server/tests/feeds/feeds.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/feeds/feeds.ts b/server/tests/feeds/feeds.ts
index 8bdafc644..7735299d3 100644
--- a/server/tests/feeds/feeds.ts
+++ b/server/tests/feeds/feeds.ts
@@ -7,9 +7,9 @@ import { HttpStatusCode } from '@shared/core-utils'
7import { 7import {
8 cleanupTests, 8 cleanupTests,
9 doubleFollow, 9 doubleFollow,
10 flushAndRunMultipleServers, 10 createMultipleServers,
11 flushAndRunServer, 11 createSingleServer,
12 ServerInfo, 12 PeerTubeServer,
13 setAccessTokensToServers, 13 setAccessTokensToServers,
14 waitJobs 14 waitJobs
15} from '@shared/extra-utils' 15} from '@shared/extra-utils'
@@ -21,8 +21,8 @@ chai.config.includeStack = true
21const expect = chai.expect 21const expect = chai.expect
22 22
23describe('Test syndication feeds', () => { 23describe('Test syndication feeds', () => {
24 let servers: ServerInfo[] = [] 24 let servers: PeerTubeServer[] = []
25 let serverHLSOnly: ServerInfo 25 let serverHLSOnly: PeerTubeServer
26 let userAccessToken: string 26 let userAccessToken: string
27 let rootAccountId: number 27 let rootAccountId: number
28 let rootChannelId: number 28 let rootChannelId: number
@@ -34,8 +34,8 @@ describe('Test syndication feeds', () => {
34 this.timeout(120000) 34 this.timeout(120000)
35 35
36 // Run servers 36 // Run servers
37 servers = await flushAndRunMultipleServers(2) 37 servers = await createMultipleServers(2)
38 serverHLSOnly = await flushAndRunServer(3, { 38 serverHLSOnly = await createSingleServer(3, {
39 transcoding: { 39 transcoding: {
40 enabled: true, 40 enabled: true,
41 webtorrent: { enabled: false }, 41 webtorrent: { enabled: false },