Skip to content

test: improve test-async-hooks-http-parser-destroy

Improve asserts to distinguish between reequest and response parsers.

Change the assert sequence to first assert on the number of ids to easier identify if some operation is missing/incomplete.

Destroy HTTP agent once expected number of events have been seen to avoid waiting on socket timeouts.

Refs: https://github.com/nodejs/node/issues/28112

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading