diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-04 13:57:56 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-04 13:57:56 +0200 |
commit | 7dd7ff4cebc290b09fe00d82046bb58e4e8a800d (patch) | |
tree | 50769811d4332f107b0db7908e1a9cbe317c19bf /server/tests | |
parent | e37ca6cbc7d20ad773389efa289f8552fa28fc75 (diff) | |
download | PeerTube-7dd7ff4cebc290b09fe00d82046bb58e4e8a800d.tar.gz PeerTube-7dd7ff4cebc290b09fe00d82046bb58e4e8a800d.tar.zst PeerTube-7dd7ff4cebc290b09fe00d82046bb58e4e8a800d.zip |
Fix tests
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/redundancy/redundancy.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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' | |||
5 | import magnetUtil from 'magnet-uri' | 5 | import magnetUtil from 'magnet-uri' |
6 | import { basename, join } from 'path' | 6 | import { basename, join } from 'path' |
7 | import { checkSegmentHash, checkVideoFilesWereRemoved, saveVideoInServers } from '@server/tests/shared' | 7 | import { checkSegmentHash, checkVideoFilesWereRemoved, saveVideoInServers } from '@server/tests/shared' |
8 | import { root, wait } from '@shared/core-utils' | 8 | import { wait } from '@shared/core-utils' |
9 | import { | 9 | import { |
10 | HttpStatusCode, | 10 | HttpStatusCode, |
11 | VideoDetails, | 11 | VideoDetails, |
@@ -164,7 +164,7 @@ async function check2Webseeds (videoUUID?: string) { | |||
164 | ] | 164 | ] |
165 | 165 | ||
166 | for (const directory of directories) { | 166 | for (const directory of directories) { |
167 | const files = await readdir(join(root(), directory)) | 167 | const files = await readdir(directory) |
168 | expect(files).to.have.length.at.least(4) | 168 | expect(files).to.have.length.at.least(4) |
169 | 169 | ||
170 | // Ensure we files exist on disk | 170 | // Ensure we files exist on disk |
@@ -219,7 +219,7 @@ async function check1PlaylistRedundancies (videoUUID?: string) { | |||
219 | ] | 219 | ] |
220 | 220 | ||
221 | for (const directory of directories) { | 221 | for (const directory of directories) { |
222 | const files = await readdir(join(root(), directory, videoUUID)) | 222 | const files = await readdir(join(directory, videoUUID)) |
223 | expect(files).to.have.length.at.least(4) | 223 | expect(files).to.have.length.at.least(4) |
224 | 224 | ||
225 | // Ensure we files exist on disk | 225 | // Ensure we files exist on disk |