diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-22 17:04:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-22 17:11:31 +0200 |
commit | 83002a823465fe03a8d82833cb2e073a383405a8 (patch) | |
tree | 1b28e2d98c192b1be513cc448be301360f33c8ad /server/tests/shared/mock-servers | |
parent | 57c318653e6a8ae9d0c2541a62853fb8dd582d5d (diff) | |
download | PeerTube-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.ts | 4 |
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 @@ | |||
1 | import { createServer, Server } from 'http' | 1 | import { createServer, Server } from 'http' |
2 | import proxy from 'proxy' | 2 | import { createProxy } from 'proxy' |
3 | import { getPort, terminateServer } from './shared' | 3 | import { getPort, terminateServer } from './shared' |
4 | 4 | ||
5 | class MockProxy { | 5 | class 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 | } |