1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Use an object to represent a server

This commit is contained in:
Chocobozzz 2021-07-16 09:47:51 +02:00
parent 89d241a79c
commit 254d3579f5
No known key found for this signature in database
GPG key ID: 583A612D890159BE
154 changed files with 1068 additions and 1056 deletions

View file

@ -11,13 +11,12 @@ import {
checkResolutionsInMasterPlaylist,
cleanupTests,
doubleFollow,
flushAndRunMultipleServers,
createMultipleServers,
killallServers,
LiveCommand,
makeRawRequest,
reRunServer,
sendRTMPStream,
ServerInfo,
PeerTubeServer,
setAccessTokensToServers,
setDefaultVideoChannel,
stopFfmpeg,
@ -32,13 +31,13 @@ import { LiveVideo, LiveVideoCreate, VideoDetails, VideoPrivacy, VideoState, Vid
const expect = chai.expect
describe('Test live', function () {
let servers: ServerInfo[] = []
let servers: PeerTubeServer[] = []
let commands: LiveCommand[]
before(async function () {
this.timeout(120000)
servers = await flushAndRunMultipleServers(2)
servers = await createMultipleServers(2)
// Get the access tokens
await setAccessTokensToServers(servers)
@ -571,7 +570,7 @@ describe('Test live', function () {
await commands[0].waitUntilSegmentGeneration({ videoUUID: liveVideoReplayId, resolution: 0, segment: 2 })
await killallServers([ servers[0] ])
await reRunServer(servers[0])
await servers[0].run()
await wait(5000)
})