Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ddcd6b

Browse filesBrowse files
committed
fix: close server
1 parent dee41a7 commit 1ddcd6b
Copy full SHA for 1ddcd6b

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎test/e2e/servers/http.spec.ts

Copy file name to clipboardExpand all lines: test/e2e/servers/http.spec.ts
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ import * as request from 'supertest';
55
import * as getPort from 'get-port';
66

77
describe('http integration', () => {
8+
let server: http.Server | null = null;
9+
10+
afterEach(() => {
11+
server?.close();
12+
});
13+
814
it('should work with raw node http RequestHandler', async () => {
915
await new Promise(async (resolve, reject) => {
1016
const port = await getPort();
11-
const server = http
17+
server = http
1218
.createServer((req, res) => {
1319
const proxyConfig: Options = {
1420
changeOrigin: true,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.