]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/videos/video-channel-syncs.ts
Fix tests
[github/Chocobozzz/PeerTube.git] / server / tests / api / videos / video-channel-syncs.ts
index a31e48d1d2524e2f93e1a643dd6a69bac1ae2a72..7f688c7d6ba56569a733a676492be9a45bb0a953 100644 (file)
@@ -5,9 +5,9 @@ import { FIXTURE_URLS, SQLCommand } from '@server/tests/shared'
 import { areHttpImportTestsDisabled } from '@shared/core-utils'
 import { VideoChannelSyncState, VideoInclude, VideoPrivacy } from '@shared/models'
 import {
+  cleanupTests,
   createMultipleServers,
   getServerImportConfig,
-  killallServers,
   PeerTubeServer,
   setAccessTokensToServers,
   setDefaultAccountAvatar,
@@ -23,7 +23,7 @@ describe('Test channel synchronizations', function () {
 
     describe('Sync using ' + mode, function () {
       let servers: PeerTubeServer[]
-      let sqlCommands: SQLCommand[]
+      let sqlCommands: SQLCommand[] = []
 
       let startTestDate: Date
 
@@ -309,7 +309,7 @@ describe('Test channel synchronizations', function () {
           await sqlCommand.cleanup()
         }
 
-        await killallServers(servers)
+        await cleanupTests(servers)
       })
     })
   }