Commit 1b6847f
authored
Fix flaky filter_body test (#12882)
The filter_body test's Proxy Verifier client can exit with either 0 or
1 depending on timing of connection closure during request body
blocking. The ATSReplayTest extension only supported a single scalar
return_code value, so the test would intermittently fail when the client
happened to exit with 0 instead of the expected 1.
Support a list of return codes in the replay YAML by wrapping them in
Any() when a list is provided, and update the filter_body test to accept
either exit code.1 parent 9a450eb commit 1b6847f
2 files changed
Lines changed: 11 additions & 5 deletions
File tree
- tests/gold_tests
- autest-site
- pluginTest/filter_body
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
| 176 | + | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
196 | | - | |
| 198 | + | |
| 199 | + | |
197 | 200 | | |
198 | | - | |
| 201 | + | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments