Archived
1
0

fix: add void for resolve in socket test

This commit is contained in:
Joe Previte 2021-01-20 12:59:12 -07:00
parent 6bf51caa17
commit 850c7e1a91
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24

View File

@ -55,7 +55,7 @@ describe("SocketProxyProvider", () => {
const socketPath = await provider.findFreeSocketPath(path.join(tmpdir, "tests/tls-socket-proxy"))
await fs.remove(socketPath)
return new Promise((_resolve) => {
return new Promise<void>((_resolve) => {
const resolved: { [key: string]: boolean } = { client: false, server: false }
const resolve = (type: "client" | "server"): void => {
resolved[type] = true