Fix tests

pull/5378/head
Chocobozzz 2022-10-21 14:38:10 +02:00 committed by Chocobozzz
parent fc097052ab
commit 0177101284
3 changed files with 5 additions and 5 deletions

View File

@ -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'

View File

@ -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) {

View File

@ -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 {