mirror of https://github.com/Chocobozzz/PeerTube
Fix tests
parent
fc097052ab
commit
0177101284
|
@ -3,7 +3,7 @@ import '../../assets/player/shared/dock/peertube-dock-component'
|
|||
import '../../assets/player/shared/dock/peertube-dock-plugin'
|
||||
import videojs from 'video.js'
|
||||
import { peertubeTranslate } from '../../../../shared/core-utils/i18n'
|
||||
import { HTMLServerConfig, LiveVideo, ResultList, VideoDetails, VideoPlaylist, VideoPlaylistElement } from '../../../../shared/models'
|
||||
import { HTMLServerConfig, ResultList, VideoDetails, VideoPlaylist, VideoPlaylistElement } from '../../../../shared/models'
|
||||
import { PeertubePlayerManager } from '../../assets/player'
|
||||
import { TranslationsManager } from '../../assets/player/translations-manager'
|
||||
import { getParamString, logger, videoRequiresAuth } from '../../root-helpers'
|
||||
|
|
|
@ -125,7 +125,7 @@ async function check1WebSeed (videoUUID?: string) {
|
|||
if (!videoUUID) videoUUID = video1Server2.uuid
|
||||
|
||||
const webseeds = [
|
||||
`http://localhost:${servers[1].port}/static/webseed/`
|
||||
`${servers[1].url}/static/webseed/`
|
||||
]
|
||||
|
||||
for (const server of servers) {
|
||||
|
@ -144,8 +144,8 @@ async function check2Webseeds (videoUUID?: string) {
|
|||
if (!videoUUID) videoUUID = video1Server2.uuid
|
||||
|
||||
const webseeds = [
|
||||
`http://localhost:${servers[0].port}/static/redundancy/`,
|
||||
`http://localhost:${servers[1].port}/static/webseed/`
|
||||
`${servers[0].url}/static/redundancy/`,
|
||||
`${servers[1].url}/static/webseed/`
|
||||
]
|
||||
|
||||
for (const server of servers) {
|
||||
|
|
|
@ -344,7 +344,7 @@ export class VideosCommand extends AbstractCommand {
|
|||
mode?: 'legacy' | 'resumable' // default legacy
|
||||
waitTorrentGeneration?: boolean // default true
|
||||
} = {}) {
|
||||
const { mode = 'legacy', waitTorrentGeneration } = options
|
||||
const { mode = 'legacy', waitTorrentGeneration = true } = options
|
||||
let defaultChannelId = 1
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue