Commit 78b70eb
test(smart-notes): spy on Agent.addRequest instead of createConnection
bun's stable node:https shim leaves globalAgent.createConnection
undefined (it exists only on canary builds), so the keep-alive-agent
test crashed on every stable runtime including CI. addRequest is the
portable interception point: every Agent-routed request enters it on
node and both bun lines.
Co-authored-by: Alfonso <alfonso-magic-context@users.noreply.github.com>1 parent 0087ee8 commit 78b70eb
1 file changed
Lines changed: 9 additions & 5 deletions
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
233 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| |||
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
252 | | - | |
| 256 | + | |
253 | 257 | | |
254 | | - | |
| 258 | + | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
0 commit comments