]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/reverse-proxy.ts
Add latency setting support
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / reverse-proxy.ts
index de3cf02f25b71c6f3cadddd5db23a9c4f3f7b13a..968d98e96897ba041fc037e7071cb14052a82e86 100644 (file)
@@ -1,11 +1,12 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
 import { expect } from 'chai'
-import { HttpStatusCode } from '@shared/core-utils'
-import { cleanupTests, flushAndRunServer, ServerInfo, setAccessTokensToServers, wait } from '@shared/extra-utils'
+import { wait } from '@shared/core-utils'
+import { HttpStatusCode } from '@shared/models'
+import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
 
 describe('Test application behind a reverse proxy', function () {
-  let server: ServerInfo
+  let server: PeerTubeServer
   let videoId: string
 
   before(async function () {
@@ -30,7 +31,7 @@ describe('Test application behind a reverse proxy', function () {
       }
     }
 
-    server = await flushAndRunServer(1, config)
+    server = await createSingleServer(1, config)
     await setAccessTokensToServers([ server ])
 
     const { uuid } = await server.videos.upload()