rproxy tests give a loaded host time before their limits run out (closes #185)
check / check (push) Failing after 5m50s

Four rproxy tests set a time limit of a second or less, and each needed a
step done before that limit ran out. On a loaded host the limit ran out
first, rproxy answered as SPEC.md says it should, and the test failed. Each
of these limits is now 3 seconds:

- TestAnAppTooSlowToFinishItsAnswerIsCutOff, which now also checks that the
  visitor got the app's 200 and the start of its answer;
- TestAVisitorTooSlowToTakeTheAnswerIsCutOff;
- TestAVisitorThatStopsSendingGetsAnAnswerRProxyGivesByTheDeadline;
- TestAReportServeWAFLeavesUnansweredIsDroppedAtTheTimeLimit.

Judgement call: tests whose limits already give 2 seconds or more are left as
they are.

Model: opus-5-5
This commit is contained in:
2026-11-05 12:55:08 +00:00
parent 344ce13c96
commit 7967d6396f
2 changed files with 30 additions and 8 deletions
+3 -1
View File
@@ -1353,8 +1353,10 @@ func TestAReportServeWAFLeavesUnansweredIsDroppedAtTheTimeLimit(t *testing.T) {
})
app := startApp(t, greet)
// The time limit is long enough for a loaded host to answer the question before
// it runs out.
addr, out := startRProxy(t, backend, app.URL, map[string]string{
timeoutSetting: "1000",
timeoutSetting: "3000",
})
t.Cleanup(func() { close(release) })