test: Switch from leaked-handles to wtfnode (#2604)

See my comments at
https://github.com/cdr/code-server/pull/2563#issuecomment-763394741
This commit is contained in:
Anmol Sethi
2021-02-01 11:06:49 -05:00
committed by GitHub
parent 5446e0ad43
commit d7f06975a6
4 changed files with 34 additions and 1 deletions

View File

@ -1,14 +1,16 @@
import { field, logger } from "@coder/logger"
import * as fs from "fs-extra"
import "leaked-handles"
import * as net from "net"
import * as path from "path"
import * as tls from "tls"
import { Emitter } from "../src/common/emitter"
import { SocketProxyProvider } from "../src/node/socket"
import { generateCertificate, tmpdir } from "../src/node/util"
import * as wtfnode from "./wtfnode"
describe("SocketProxyProvider", () => {
wtfnode.setup()
const provider = new SocketProxyProvider()
const onServerError = new Emitter<{ event: string; error: Error }>()