Skip to content

Commit ba8f093

Browse files
committed
test: wrap inspector HTTP handler in mustCall
1 parent 36702d4 commit ba8f093

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-inspector-network-http.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const setResponseHeaders = (res) => {
4343
const kTimeout = 1000;
4444
const kDelta = 200;
4545

46-
const handleRequest = (req, res) => {
46+
const handleRequest = common.mustCall((req, res) => {
4747
const path = req.url;
4848
switch (path) {
4949
case '/hello-world':
@@ -81,7 +81,7 @@ const handleRequest = (req, res) => {
8181
default:
8282
assert.fail(`Unexpected path: ${path}`);
8383
}
84-
};
84+
}, 5);
8585

8686
const httpServer = http.createServer(handleRequest);
8787

0 commit comments

Comments
 (0)