PeerTubeServer,
setAccessTokensToServers,
waitJobs
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
const expect = chai.expect
it('Should have server 1 following server 2', async function () {
this.timeout(30000)
- await commands[0].follow({ targets: [ servers[1].url ] })
+ await commands[0].follow({ hosts: [ servers[1].url ] })
await waitJobs(servers)
})
await servers[1].config.updateCustomSubConfig({ newConfig: subConfig })
- await commands[0].follow({ targets: [ servers[1].url ] })
+ await commands[0].follow({ hosts: [ servers[1].url ] })
await waitJobs(servers)
await checkNoFollowers(servers)
await servers[1].config.updateCustomSubConfig({ newConfig: subConfig })
- await commands[0].follow({ targets: [ servers[1].url ] })
+ await commands[0].follow({ hosts: [ servers[1].url ] })
await waitJobs(servers)
await checkServer1And2HasFollowers(servers)
await servers[1].config.updateCustomSubConfig({ newConfig: subConfig })
await servers[2].config.updateCustomSubConfig({ newConfig: subConfig })
- await commands[0].follow({ targets: [ servers[1].url ] })
+ await commands[0].follow({ hosts: [ servers[1].url ] })
await waitJobs(servers)
await checkServer1And2HasFollowers(servers, 'pending')
it('Should reject another follower', async function () {
this.timeout(20000)
- await commands[0].follow({ targets: [ servers[2].url ] })
+ await commands[0].follow({ hosts: [ servers[2].url ] })
await waitJobs(servers)
{