diff options
Diffstat (limited to 'server/tests/api/redundancy/redundancy.ts')
-rw-r--r-- | server/tests/api/redundancy/redundancy.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/redundancy/redundancy.ts b/server/tests/api/redundancy/redundancy.ts index 57939775e..5262c503f 100644 --- a/server/tests/api/redundancy/redundancy.ts +++ b/server/tests/api/redundancy/redundancy.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import { expect } from 'chai' | 3 | import { expect } from 'chai' |
4 | import { readdir } from 'fs-extra' | 4 | import { readdir } from 'fs-extra' |
5 | import magnetUtil from 'magnet-uri' | 5 | import { decode as magnetUriDecode } 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 { wait } from '@shared/core-utils' | 8 | import { wait } from '@shared/core-utils' |
@@ -29,7 +29,7 @@ let servers: PeerTubeServer[] = [] | |||
29 | let video1Server2: VideoDetails | 29 | let video1Server2: VideoDetails |
30 | 30 | ||
31 | async function checkMagnetWebseeds (file: VideoFile, baseWebseeds: string[], server: PeerTubeServer) { | 31 | async function checkMagnetWebseeds (file: VideoFile, baseWebseeds: string[], server: PeerTubeServer) { |
32 | const parsed = magnetUtil.decode(file.magnetUri) | 32 | const parsed = magnetUriDecode(file.magnetUri) |
33 | 33 | ||
34 | for (const ws of baseWebseeds) { | 34 | for (const ws of baseWebseeds) { |
35 | const found = parsed.urlList.find(url => url === `${ws}${basename(file.fileUrl)}`) | 35 | const found = parsed.urlList.find(url => url === `${ws}${basename(file.fileUrl)}`) |