test: add http agent to executionAsyncResource
I added a testcase about executionAsyncResource with Http Agent.
Refs: https://github.com/nodejs/node/blob/master/test/async-hooks/test-async-exec-resource-http.js Signed-off-by: psj-tar-gz [email protected]
Checklist
- [x]
make -j4 test(UNIX), orvcbuild test(Windows) passes - [x] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [x] commit message follows commit guidelines
Isn't it needed to execute at least two http requests to the same server to see the diff between use of the dedicated agent versus the global agent?
CI: https://ci.nodejs.org/job/node-test-pull-request/33068/
CI: https://ci.nodejs.org/job/node-test-pull-request/34193/
@psj-tar-gz Linter complains about a few findings. A rebase to current master is maybe also a good idea.
CI: https://ci.nodejs.org/job/node-test-pull-request/35650/
CI: https://ci.nodejs.org/job/node-test-pull-request/58970/
CI: https://ci.nodejs.org/job/node-test-pull-request/59077/
Landed in https://github.com/nodejs/node/pull/34966/commits/491855c82b01359df0006d1936e8eb71cafd19c9