rproxy tests: give the 1 MiB answer a 60 s time limit (closes #335)
check / check (push) Waiting to run

Test only. `TestAnAnswerOf1MiBGoesToTheVisitor` left `SWRP_TIMEOUT_MS` at 2 s. On a loaded host `rproxy` could apply `SWRP_DEFAULT_DISPOSITION` before it had read the whole answer, and the test failed. It now sets `SWRP_TIMEOUT_MS` to `60000`, as the file's other tests do where that limit is not what they test.

Model: opus-5-5
This commit is contained in:
sneak committed 2026-11-11 05:58:12 +00:00
1 parent b89c53c640
commit cf7177942b
1 file changed
+3 -1
+3 -1
View File
@@ -1023,7 +1023,9 @@ func TestAnAnswerOf1MiBGoesToTheVisitor(t *testing.T) {
w.WriteHeader(http.StatusInternalServerError)
_, _ = w.Write(make([]byte, size))
})
addr, _ := startRProxy(t, standIn.URL, nowhere, nil)
addr, _ := startRProxy(t, standIn.URL, nowhere, map[string]string{
timeoutSetting: "60000",
})
got := get(t, addr, "/")
if got.status != http.StatusInternalServerError || len(got.body) != size {