aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared/mock-servers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-22 17:04:39 +0200
committerChocobozzz <me@florianbigard.com>2023-05-22 17:11:31 +0200
commit83002a823465fe03a8d82833cb2e073a383405a8 (patch)
tree1b28e2d98c192b1be513cc448be301360f33c8ad /server/tests/shared/mock-servers
parent57c318653e6a8ae9d0c2541a62853fb8dd582d5d (diff)
downloadPeerTube-83002a823465fe03a8d82833cb2e073a383405a8.tar.gz
PeerTube-83002a823465fe03a8d82833cb2e073a383405a8.tar.zst
PeerTube-83002a823465fe03a8d82833cb2e073a383405a8.zip
Update server dependencies
Diffstat (limited to 'server/tests/shared/mock-servers')
-rw-r--r--server/tests/shared/mock-servers/mock-proxy.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/shared/mock-servers/mock-proxy.ts b/server/tests/shared/mock-servers/mock-proxy.ts
index cbc7c4466..e741d6735 100644
--- a/server/tests/shared/mock-servers/mock-proxy.ts
+++ b/server/tests/shared/mock-servers/mock-proxy.ts
@@ -1,5 +1,5 @@
1import { createServer, Server } from 'http' 1import { createServer, Server } from 'http'
2import proxy from 'proxy' 2import { createProxy } from 'proxy'
3import { getPort, terminateServer } from './shared' 3import { getPort, terminateServer } from './shared'
4 4
5class MockProxy { 5class MockProxy {
@@ -7,7 +7,7 @@ class MockProxy {
7 7
8 initialize () { 8 initialize () {
9 return new Promise<number>(res => { 9 return new Promise<number>(res => {
10 this.server = proxy(createServer()) 10 this.server = createProxy(createServer())
11 this.server.listen(0, () => res(getPort(this.server))) 11 this.server.listen(0, () => res(getPort(this.server)))
12 }) 12 })
13 } 13 }