rproxy tests: give the over-1 MiB answers a 60 s time limit (closes #323) #328
@@ -1117,6 +1117,7 @@ func TestAnAnswerThatCannotBePassedOnIsAnswered502(t *testing.T) {
|
|||||||
t.Error("the app was asked")
|
t.Error("the app was asked")
|
||||||
})
|
})
|
||||||
addr, out := startRProxy(t, backend(t), app.URL, map[string]string{
|
addr, out := startRProxy(t, backend(t), app.URL, map[string]string{
|
||||||
|
timeoutSetting: "60000",
|
||||||
defaultDisposition: setting,
|
defaultDisposition: setting,
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -1140,7 +1141,9 @@ func TestAnAnswerThatCannotBePassedOnGetsNoReport(t *testing.T) {
|
|||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
standIn := startWAF(t, overOneMiB(dispositionDeny))
|
standIn := startWAF(t, overOneMiB(dispositionDeny))
|
||||||
addr, out := startRProxy(t, standIn.URL, nowhere, nil)
|
addr, out := startRProxy(t, standIn.URL, nowhere, map[string]string{
|
||||||
|
timeoutSetting: "60000",
|
||||||
|
})
|
||||||
|
|
||||||
if got := get(t, addr, "/"); got.status != http.StatusBadGateway {
|
if got := get(t, addr, "/"); got.status != http.StatusBadGateway {
|
||||||
t.Errorf("answered %+v, want 502", got)
|
t.Errorf("answered %+v, want 502", got)
|
||||||
|
|||||||
Reference in new issue
Block a user