Skip to content

Commit

Permalink
Fix test-http-server-keepalive-req-gc
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Pierre-doray committed May 28, 2024
1 parent abd9454 commit b8acb2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-http-server-keepalive-req-gc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ const server = createServer(common.mustCall((req, res) => {
onGC(req, { ongc: common.mustCall(() => { server.close(); }) });
req.resume();
req.on('end', common.mustCall(() => {
setImmediate(() => {
setImmediate(async () => {
client.end();
global.gc();
await gc({type:'major', execution:'async'});

Check failure on line 19 in test/parallel/test-http-server-keepalive-req-gc.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

'gc' is not defined

Check failure on line 19 in test/parallel/test-http-server-keepalive-req-gc.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

A space is required after '{'

Check failure on line 19 in test/parallel/test-http-server-keepalive-req-gc.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Missing space before value for key 'type'

Check failure on line 19 in test/parallel/test-http-server-keepalive-req-gc.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Missing space before value for key 'execution'

Check failure on line 19 in test/parallel/test-http-server-keepalive-req-gc.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

A space is required before '}'
await gc({type:'major', execution:'async'});

Check failure on line 20 in test/parallel/test-http-server-keepalive-req-gc.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

'gc' is not defined

Check failure on line 20 in test/parallel/test-http-server-keepalive-req-gc.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

A space is required after '{'

Check failure on line 20 in test/parallel/test-http-server-keepalive-req-gc.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

Missing space before value for key 'type'
});
}));
res.end('hello world');
Expand Down

0 comments on commit b8acb2e

Please sign in to comment.