From 54db8e3d5c09fedc82d8421529c81255760a5ac2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 30 Dec 2022 15:05:14 +0100 Subject: Fix P2P with object storage --- server/tests/shared/live.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/tests/shared/live.ts') diff --git a/server/tests/shared/live.ts b/server/tests/shared/live.ts index 47e0dc481..1c868eb5b 100644 --- a/server/tests/shared/live.ts +++ b/server/tests/shared/live.ts @@ -6,6 +6,7 @@ import { join } from 'path' import { LiveVideo, VideoStreamingPlaylistType } from '@shared/models' import { ObjectStorageCommand, PeerTubeServer } from '@shared/server-commands' import { checkLiveSegmentHash, checkResolutionsInMasterPlaylist } from './streaming-playlists' +import { sha1 } from '@shared/extra-utils' async function checkLiveCleanup (options: { server: PeerTubeServer @@ -101,6 +102,13 @@ async function testVideoResolutions (options: { segmentName, hlsPlaylist }) + + if (originServer.internalServerNumber === server.internalServerNumber) { + const infohash = sha1(`${2 + hlsPlaylist.playlistUrl}+V${i}`) + const dbInfohashes = await originServer.sql.getPlaylistInfohash(hlsPlaylist.id) + + expect(dbInfohashes).to.include(infohash) + } } } } -- cgit v1.2.3