(t *testing.T)
| 233 | } |
| 234 | |
| 235 | func TestLoopbackReachDefaultLimit(t *testing.T) { |
| 236 | routes := ` |
| 237 | entry: * |
| 238 | -> appendResponseHeader("X-Entry-Route-Done", "true") |
| 239 | -> setRequestHeader("X-Loop-Route", "1") |
| 240 | -> <loopback>; |
| 241 | |
| 242 | loopRoute1: Header("X-Loop-Route", "1") |
| 243 | -> appendResponseHeader("X-Loop-Route-Done", "1") |
| 244 | -> <loopback>; |
| 245 | ` |
| 246 | |
| 247 | testLoopback(t, routes, Params{}, nil, http.StatusInternalServerError, http.Header{ |
| 248 | "X-Entry-Route-Done": nil, |
| 249 | "X-Loop-Route-Done": nil, |
| 250 | }) |
| 251 | } |
| 252 | |
| 253 | func TestLoopbackPreserveOriginalRequest(t *testing.T) { |
| 254 | routes := ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…