diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-09 11:14:47 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-12 13:36:23 +0100 |
commit | 2732eeff9e6994582293b5aaa0cb158b7e272e9e (patch) | |
tree | 417d30cf470cd1db84e06c5dbd1b5429d4b99bc1 /server/tests/plugins | |
parent | c7c5f8d0f17b0ab598fbe237f11639c6de28110c (diff) | |
download | PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.tar.gz PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.tar.zst PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.zip |
Fix CI using 127.0.0.1 for tests
Diffstat (limited to 'server/tests/plugins')
-rw-r--r-- | server/tests/plugins/plugin-helpers.ts | 12 |
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 | ||