aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins/plugin-helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/plugins/plugin-helpers.ts')
-rw-r--r--server/tests/plugins/plugin-helpers.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/plugins/plugin-helpers.ts b/server/tests/plugins/plugin-helpers.ts
index f2bada4ee..038e3f0d6 100644
--- a/server/tests/plugins/plugin-helpers.ts
+++ b/server/tests/plugins/plugin-helpers.ts
@@ -46,7 +46,7 @@ describe('Test plugin helpers', function () {
46 describe('Logger', function () { 46 describe('Logger', function () {
47 47
48 it('Should have logged things', async function () { 48 it('Should have logged things', async function () {
49 await servers[0].servers.waitUntilLog('localhost:' + servers[0].port + ' peertube-plugin-test-four', 1, false) 49 await servers[0].servers.waitUntilLog(servers[0].host + ' peertube-plugin-test-four', 1, false)
50 await servers[0].servers.waitUntilLog('Hello world from plugin four', 1) 50 await servers[0].servers.waitUntilLog('Hello world from plugin four', 1)
51 }) 51 })
52 }) 52 })
@@ -61,7 +61,7 @@ describe('Test plugin helpers', function () {
61 describe('Config', function () { 61 describe('Config', function () {
62 62
63 it('Should have the correct webserver url', async function () { 63 it('Should have the correct webserver url', async function () {
64 await servers[0].servers.waitUntilLog(`server url is http://localhost:${servers[0].port}`) 64 await servers[0].servers.waitUntilLog(`server url is ${servers[0].url}`)
65 }) 65 })
66 66
67 it('Should have the correct config', async function () { 67 it('Should have the correct config', async function () {
@@ -208,7 +208,7 @@ describe('Test plugin helpers', function () {
208 208
209 it('Should mute server 2', async function () { 209 it('Should mute server 2', async function () {
210 this.timeout(10000) 210 this.timeout(10000)
211 await postCommand(servers[0], 'blockServer', { hostToBlock: `localhost:${servers[1].port}` }) 211 await postCommand(servers[0], 'blockServer', { hostToBlock: servers[1].host })
212 212
213 const { data } = await servers[0].videos.list() 213 const { data } = await servers[0].videos.list()
214 214
@@ -217,7 +217,7 @@ describe('Test plugin helpers', function () {
217 }) 217 })
218 218
219 it('Should unmute server 2', async function () { 219 it('Should unmute server 2', async function () {
220 await postCommand(servers[0], 'unblockServer', { hostToUnblock: `localhost:${servers[1].port}` }) 220 await postCommand(servers[0], 'unblockServer', { hostToUnblock: servers[1].host })
221 221
222 const { data } = await servers[0].videos.list() 222 const { data } = await servers[0].videos.list()
223 223
@@ -225,7 +225,7 @@ describe('Test plugin helpers', function () {
225 }) 225 })
226 226
227 it('Should mute account of server 2', async function () { 227 it('Should mute account of server 2', async function () {
228 await postCommand(servers[0], 'blockAccount', { handleToBlock: `root@localhost:${servers[1].port}` }) 228 await postCommand(servers[0], 'blockAccount', { handleToBlock: `root@${servers[1].host}` })
229 229
230 const { data } = await servers[0].videos.list() 230 const { data } = await servers[0].videos.list()
231 231
@@ -234,7 +234,7 @@ describe('Test plugin helpers', function () {
234 }) 234 })
235 235
236 it('Should unmute account of server 2', async function () { 236 it('Should unmute account of server 2', async function () {
237 await postCommand(servers[0], 'unblockAccount', { handleToUnblock: `root@localhost:${servers[1].port}` }) 237 await postCommand(servers[0], 'unblockAccount', { handleToUnblock: `root@${servers[1].host}` })
238 238
239 const { data } = await servers[0].videos.list() 239 const { data } = await servers[0].videos.list()
240 240