aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/external-plugins/auto-block-videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/external-plugins/auto-block-videos.ts')
-rw-r--r--server/tests/external-plugins/auto-block-videos.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/external-plugins/auto-block-videos.ts b/server/tests/external-plugins/auto-block-videos.ts
index 1b91d141e..18ea17d78 100644
--- a/server/tests/external-plugins/auto-block-videos.ts
+++ b/server/tests/external-plugins/auto-block-videos.ts
@@ -40,6 +40,7 @@ describe('Official plugin auto-block videos', function () {
40 let blocklistServer: MockBlocklist 40 let blocklistServer: MockBlocklist
41 let server1Videos: Video[] = [] 41 let server1Videos: Video[] = []
42 let server2Videos: Video[] = [] 42 let server2Videos: Video[] = []
43 let port: number
43 44
44 before(async function () { 45 before(async function () {
45 this.timeout(60000) 46 this.timeout(60000)
@@ -56,7 +57,7 @@ describe('Official plugin auto-block videos', function () {
56 } 57 }
57 58
58 blocklistServer = new MockBlocklist() 59 blocklistServer = new MockBlocklist()
59 await blocklistServer.initialize() 60 port = await blocklistServer.initialize()
60 61
61 await uploadVideoAndGetId({ server: servers[0], videoName: 'video server 1' }) 62 await uploadVideoAndGetId({ server: servers[0], videoName: 'video server 1' })
62 await uploadVideoAndGetId({ server: servers[1], videoName: 'video server 2' }) 63 await uploadVideoAndGetId({ server: servers[1], videoName: 'video server 2' })
@@ -82,7 +83,7 @@ describe('Official plugin auto-block videos', function () {
82 accessToken: servers[0].accessToken, 83 accessToken: servers[0].accessToken,
83 npmName: 'peertube-plugin-auto-block-videos', 84 npmName: 'peertube-plugin-auto-block-videos',
84 settings: { 85 settings: {
85 'blocklist-urls': 'http://localhost:42100/blocklist', 86 'blocklist-urls': `http://localhost:${port}/blocklist`,
86 'check-seconds-interval': 1 87 'check-seconds-interval': 1
87 } 88 }
88 }) 89 })