mirror of https://github.com/coder/code-server.git
fix: add void for resolve in socket test
This commit is contained in:
parent
6bf51caa17
commit
850c7e1a91
|
@ -55,7 +55,7 @@ describe("SocketProxyProvider", () => {
|
||||||
const socketPath = await provider.findFreeSocketPath(path.join(tmpdir, "tests/tls-socket-proxy"))
|
const socketPath = await provider.findFreeSocketPath(path.join(tmpdir, "tests/tls-socket-proxy"))
|
||||||
await fs.remove(socketPath)
|
await fs.remove(socketPath)
|
||||||
|
|
||||||
return new Promise((_resolve) => {
|
return new Promise<void>((_resolve) => {
|
||||||
const resolved: { [key: string]: boolean } = { client: false, server: false }
|
const resolved: { [key: string]: boolean } = { client: false, server: false }
|
||||||
const resolve = (type: "client" | "server"): void => {
|
const resolve = (type: "client" | "server"): void => {
|
||||||
resolved[type] = true
|
resolved[type] = true
|
||||||
|
|
Loading…
Reference in New Issue