rproxy tests: give the 1 MiB answer a 60 s time limit (closes #335)
check / check (push) Waiting to run
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:
1 parent
b89c53c640
commit
cf7177942b
1 file changed
+3
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user