(t *testing.T)
| 215 | } |
| 216 | |
| 217 | func TestLoopbackReachLimit(t *testing.T) { |
| 218 | routes := ` |
| 219 | entry: * |
| 220 | -> appendResponseHeader("X-Entry-Route-Done", "true") |
| 221 | -> setRequestHeader("X-Loop-Route", "1") |
| 222 | -> <loopback>; |
| 223 | |
| 224 | loopRoute1: Header("X-Loop-Route", "1") |
| 225 | -> appendResponseHeader("X-Loop-Route-Done", "1") |
| 226 | -> <loopback>; |
| 227 | ` |
| 228 | |
| 229 | testLoopback(t, routes, Params{MaxLoopbacks: 3}, nil, http.StatusInternalServerError, http.Header{ |
| 230 | "X-Entry-Route-Done": nil, |
| 231 | "X-Loop-Route-Done": nil, |
| 232 | }) |
| 233 | } |
| 234 | |
| 235 | func TestLoopbackReachDefaultLimit(t *testing.T) { |
| 236 | routes := ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…