We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dee41a7 commit 1ddcd6bCopy full SHA for 1ddcd6b
test/e2e/servers/http.spec.ts
@@ -5,10 +5,16 @@ import * as request from 'supertest';
5
import * as getPort from 'get-port';
6
7
describe('http integration', () => {
8
+ let server: http.Server | null = null;
9
+
10
+ afterEach(() => {
11
+ server?.close();
12
+ });
13
14
it('should work with raw node http RequestHandler', async () => {
15
await new Promise(async (resolve, reject) => {
16
const port = await getPort();
- const server = http
17
+ server = http
18
.createServer((req, res) => {
19
const proxyConfig: Options = {
20
changeOrigin: true,
0 commit comments