aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/mock-servers/mock-proxy.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-12 13:30:41 +0200
committerChocobozzz <me@florianbigard.com>2021-10-12 13:30:41 +0200
commit3c25d37aef66b125e8c66d38b04eb763f1b17bc6 (patch)
tree27be1c7f6db6a221c700489a43b1e9c389ea94e3 /shared/extra-utils/mock-servers/mock-proxy.ts
parent221d876fa7a9e92a5a6721b68c31d015b325393f (diff)
downloadPeerTube-3c25d37aef66b125e8c66d38b04eb763f1b17bc6.tar.gz
PeerTube-3c25d37aef66b125e8c66d38b04eb763f1b17bc6.tar.zst
PeerTube-3c25d37aef66b125e8c66d38b04eb763f1b17bc6.zip
Try to fix mock server ports
Diffstat (limited to 'shared/extra-utils/mock-servers/mock-proxy.ts')
-rw-r--r--shared/extra-utils/mock-servers/mock-proxy.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/extra-utils/mock-servers/mock-proxy.ts b/shared/extra-utils/mock-servers/mock-proxy.ts
index f955d3f9e..8583250f3 100644
--- a/shared/extra-utils/mock-servers/mock-proxy.ts
+++ b/shared/extra-utils/mock-servers/mock-proxy.ts
@@ -9,7 +9,7 @@ class MockProxy {
9 9
10 initialize () { 10 initialize () {
11 return new Promise<number>(res => { 11 return new Promise<number>(res => {
12 const port = 42501 + randomInt(1, 100) 12 const port = 46000 + randomInt(1, 1000)
13 13
14 this.server = proxy(createServer()) 14 this.server = proxy(createServer())
15 this.server.listen(port, () => res(port)) 15 this.server.listen(port, () => res(port))