Commit d9d3d7b
committed
test: accept timeout (28) in localhost test
The test_weak_mode_allows_localhost test was flaky because curl sometimes
times out (exit 28) instead of immediately failing with connection refused (7).
This can happen when the proxy attempts to connect to localhost:80 but there's
no server listening. The timeout still indicates the connection was allowed
by the proxy rules (not blocked), which is what the test is verifying.
Accepting exit code 28 makes the test more robust while still validating
the core behavior.1 parent 74f2b8b commit d9d3d7b
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments