From 0177101284509ad68c5e484bce0474f57069c006 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Oct 2022 14:38:10 +0200 Subject: Fix tests --- client/src/standalone/videos/embed.ts | 2 +- server/tests/api/redundancy/redundancy.ts | 6 +++--- shared/server-commands/videos/videos-command.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index c6160151a..b89c901f1 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -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' diff --git a/server/tests/api/redundancy/redundancy.ts b/server/tests/api/redundancy/redundancy.ts index ba6b00e0b..fb2e6e91c 100644 --- a/server/tests/api/redundancy/redundancy.ts +++ b/server/tests/api/redundancy/redundancy.ts @@ -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) { diff --git a/shared/server-commands/videos/videos-command.ts b/shared/server-commands/videos/videos-command.ts index 5ec3b6ba8..1d6cad351 100644 --- a/shared/server-commands/videos/videos-command.ts +++ b/shared/server-commands/videos/videos-command.ts @@ -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 { -- cgit v1.2.3