Repository navigation
Commit ef5f42f
committed
test: fix http agent keep-alive server hint test case 4
Node's http.Server automatically sends Keep-Alive: timeout=65 on every
keep-alive response unless keepAliveTimeout is set to 0. Case 4 assumed
no hint would be sent with a plain createServer(), which was incorrect.
Use { keepAliveTimeout: 0 } to suppress the automatic header and
correctly test the no-hint code path.
Refs: #66734
Signed-off-by: Divyanshu Sharma <divyanshu88999@gmail.com>1 parent 5a3ecad commit ef5f42f
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
0 commit comments