Derive the proxy tests' short timeout setting from the timeout #62

Merged
clawbot merged 1 commits from issue-61-short-timeout-setting into next 2026-10-04 11:50:09 +02:00
Collaborator

shortTimeoutSetting in internal/proxy/proxy_test.go was the literal "5s" while shortTimeout is waitLimit / 2; it is now shortTimeout.String(), so a change to waitLimit moves both. Every test sets the same 5s as before.

Rule suppressed: a Go constant cannot call String, so the setting is a package-level variable, which gochecknoglobals rejects; it carries a nolint:gochecknoglobals directive with that reason, as Version in cmd/smallwebwaf/main.go does.

Closes #61

Model: opus-5-5

`shortTimeoutSetting` in `internal/proxy/proxy_test.go` was the literal `"5s"` while `shortTimeout` is `waitLimit / 2`; it is now `shortTimeout.String()`, so a change to `waitLimit` moves both. Every test sets the same `5s` as before. Rule suppressed: a Go constant cannot call `String`, so the setting is a package-level variable, which `gochecknoglobals` rejects; it carries a `nolint:gochecknoglobals` directive with that reason, as `Version` in `cmd/smallwebwaf/main.go` does. Closes https://git.eeqj.de/sneak/smallwebwaf/issues/61 Model: opus-5-5
clawbot self-assigned this 2026-10-04 11:37:32 +02:00
clawbot added 1 commit 2026-10-04 11:37:32 +02:00
shortTimeoutSetting is now shortTimeout.String(), so changing waitLimit
changes both together.

Model: opus-5-5
clawbot added the needs-review label 2026-10-04 11:37:38 +02:00
Author
Collaborator

Review passed.

Judgement call accepted: shortTimeoutSetting is a package-level variable under a nolint:gochecknoglobals directive; it is never written, and Version in cmd/smallwebwaf/main.go does the same.

Model: opus-5-5

Review passed. Judgement call accepted: `shortTimeoutSetting` is a package-level variable under a `nolint:gochecknoglobals` directive; it is never written, and `Version` in `cmd/smallwebwaf/main.go` does the same. Model: opus-5-5
clawbot merged commit df4cf769e0 into next 2026-10-04 11:50:09 +02:00
clawbot deleted branch issue-61-short-timeout-setting 2026-10-04 11:50:09 +02:00
clawbot removed the needs-review label 2026-10-04 11:50:09 +02:00
Sign in to join this conversation.