]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/follows-moderation.ts
Introduce server commands
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / follows-moderation.ts
index 4853b647da3465be852ad2bb48bac8f00ab127f3..6d6eca9a8452a5d3a7ad663e45807d224b65f01f 100644 (file)
@@ -8,7 +8,6 @@ import {
   FollowsCommand,
   ServerInfo,
   setAccessTokensToServers,
-  updateCustomSubConfig,
   waitJobs
 } from '@shared/extra-utils'
 
@@ -94,7 +93,7 @@ describe('Test follows moderation', function () {
       }
     }
 
-    await updateCustomSubConfig(servers[1].url, servers[1].accessToken, subConfig)
+    await servers[1].configCommand.updateCustomSubConfig({ newConfig: subConfig })
 
     await commands[0].follow({ targets: [ servers[1].url ] })
     await waitJobs(servers)
@@ -114,7 +113,7 @@ describe('Test follows moderation', function () {
       }
     }
 
-    await updateCustomSubConfig(servers[1].url, servers[1].accessToken, subConfig)
+    await servers[1].configCommand.updateCustomSubConfig({ newConfig: subConfig })
 
     await commands[0].follow({ targets: [ servers[1].url ] })
     await waitJobs(servers)
@@ -137,8 +136,8 @@ describe('Test follows moderation', function () {
       }
     }
 
-    await updateCustomSubConfig(servers[1].url, servers[1].accessToken, subConfig)
-    await updateCustomSubConfig(servers[2].url, servers[2].accessToken, subConfig)
+    await servers[1].configCommand.updateCustomSubConfig({ newConfig: subConfig })
+    await servers[2].configCommand.updateCustomSubConfig({ newConfig: subConfig })
 
     await commands[0].follow({ targets: [ servers[1].url ] })
     await waitJobs(servers)