aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/redundancy/redundancy-constraints.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 09:16:40 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commitc3d29f694bf8c910f917be655626d0f80871124f (patch)
treec90dfdc1245c8a9aca49e9ea9c71ed8e6b9dd35f /server/tests/api/redundancy/redundancy-constraints.ts
parent883a9019085ff9013079d6b1539b86f2f519175a (diff)
downloadPeerTube-c3d29f694bf8c910f917be655626d0f80871124f.tar.gz
PeerTube-c3d29f694bf8c910f917be655626d0f80871124f.tar.zst
PeerTube-c3d29f694bf8c910f917be655626d0f80871124f.zip
Introduce follows command
Diffstat (limited to 'server/tests/api/redundancy/redundancy-constraints.ts')
-rw-r--r--server/tests/api/redundancy/redundancy-constraints.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/redundancy/redundancy-constraints.ts b/server/tests/api/redundancy/redundancy-constraints.ts
index 1cb1603bc..602f4bc1b 100644
--- a/server/tests/api/redundancy/redundancy-constraints.ts
+++ b/server/tests/api/redundancy/redundancy-constraints.ts
@@ -7,7 +7,6 @@ import { VideoPrivacy } from '@shared/models'
7import { 7import {
8 cleanupTests, 8 cleanupTests,
9 flushAndRunServer, 9 flushAndRunServer,
10 follow,
11 killallServers, 10 killallServers,
12 reRunServer, 11 reRunServer,
13 ServerInfo, 12 ServerInfo,
@@ -98,7 +97,7 @@ describe('Test redundancy constraints', function () {
98 await waitJobs(servers) 97 await waitJobs(servers)
99 98
100 // Server 1 and server 2 follow each other 99 // Server 1 and server 2 follow each other
101 await follow(remoteServer.url, [ localServer.url ], remoteServer.accessToken) 100 await remoteServer.followsCommand.follow({ targets: [ localServer.url ] })
102 await waitJobs(servers) 101 await waitJobs(servers)
103 await updateRedundancy(remoteServer.url, remoteServer.accessToken, localServer.host, true) 102 await updateRedundancy(remoteServer.url, remoteServer.accessToken, localServer.host, true)
104 103
@@ -184,7 +183,7 @@ describe('Test redundancy constraints', function () {
184 it('Should have redundancy on server 1 and on server 2 with followings filter now server 2 follows server 1', async function () { 183 it('Should have redundancy on server 1 and on server 2 with followings filter now server 2 follows server 1', async function () {
185 this.timeout(120000) 184 this.timeout(120000)
186 185
187 await follow(localServer.url, [ remoteServer.url ], localServer.accessToken) 186 await localServer.followsCommand.follow({ targets: [ remoteServer.url ] })
188 await waitJobs(servers) 187 await waitJobs(servers)
189 188
190 await uploadWrapper('video 4 server 2') 189 await uploadWrapper('video 4 server 2')