]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/follows.ts
Use an object to represent a server
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / follows.ts
index d430646892f49f92a87ec5aa6662452149d79d5f..8856177b8b5502cc732fac40b09444d476f71999 100644 (file)
@@ -7,9 +7,9 @@ import {
   completeVideoCheck,
   dateIsValid,
   expectAccountFollows,
-  flushAndRunMultipleServers,
+  createMultipleServers,
   FollowsCommand,
-  ServerInfo,
+  PeerTubeServer,
   setAccessTokensToServers,
   testCaptionFile,
   waitJobs
@@ -19,13 +19,13 @@ import { Video, VideoPrivacy } from '@shared/models'
 const expect = chai.expect
 
 describe('Test follows', function () {
-  let servers: ServerInfo[] = []
+  let servers: PeerTubeServer[] = []
   let followsCommands: FollowsCommand[]
 
   before(async function () {
     this.timeout(30000)
 
-    servers = await flushAndRunMultipleServers(3)
+    servers = await createMultipleServers(3)
     followsCommands = servers.map(s => s.follows)
 
     // Get the access tokens