From 7dd7ff4cebc290b09fe00d82046bb58e4e8a800d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 4 Oct 2022 13:57:56 +0200 Subject: Fix tests --- server/tests/api/redundancy/redundancy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/api') diff --git a/server/tests/api/redundancy/redundancy.ts b/server/tests/api/redundancy/redundancy.ts index 0f4973184..f349a7a76 100644 --- a/server/tests/api/redundancy/redundancy.ts +++ b/server/tests/api/redundancy/redundancy.ts @@ -5,7 +5,7 @@ import { readdir } from 'fs-extra' import magnetUtil from 'magnet-uri' import { basename, join } from 'path' import { checkSegmentHash, checkVideoFilesWereRemoved, saveVideoInServers } from '@server/tests/shared' -import { root, wait } from '@shared/core-utils' +import { wait } from '@shared/core-utils' import { HttpStatusCode, VideoDetails, @@ -164,7 +164,7 @@ async function check2Webseeds (videoUUID?: string) { ] for (const directory of directories) { - const files = await readdir(join(root(), directory)) + const files = await readdir(directory) expect(files).to.have.length.at.least(4) // Ensure we files exist on disk @@ -219,7 +219,7 @@ async function check1PlaylistRedundancies (videoUUID?: string) { ] for (const directory of directories) { - const files = await readdir(join(root(), directory, videoUUID)) + const files = await readdir(join(directory, videoUUID)) expect(files).to.have.length.at.least(4) // Ensure we files exist on disk -- cgit v1.2.3