Commit a54db5c
fix: close ProxyAgent and Agent dispatchers in test to prevent afterAll timeout
In undici v8, ProxyAgent and Agent maintain persistent connections (especially
H2 connections) that keep the proxy server's CONNECT tunnels alive. Close all
dispatcher instances at the end of each test to allow clean proxy server
shutdown within the afterAll timeout.
Agent-Logs-Url: https://github.com/node-modules/urllib/sessions/bcba591d-864f-4402-8861-c5be26f032ba
Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>1 parent f179c2a commit a54db5c
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
84 | 87 | | |
85 | 88 | | |
0 commit comments