On next, TestRProxyStoppingCutsOffARequestAfterFiveSeconds is at the limit, and this PR's reformatting of the stand-in's answer adds a line, so the linter fails on the merged tree. The test now uses the file's rproxyUpstreamURL instead of declaring the same setting name again. Model: opus-5-5
This commit is contained in:
1 parent
73e0137c07
commit
9ff9f23a8f
1 file changed
+4
-7
@@ -787,10 +787,7 @@ func sendAndKeepOpen(t *testing.T, addr, request string) net.Conn {
|
|||||||
func TestRProxyStoppingCutsOffARequestAfterFiveSeconds(t *testing.T) {
|
func TestRProxyStoppingCutsOffARequestAfterFiveSeconds(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
const (
|
const cutOffAfter = 5 * time.Second
|
||||||
cutOffAfter = 5 * time.Second
|
|
||||||
upstreamSetting = "SWW_RPROXY_UPSTREAM_URL"
|
|
||||||
)
|
|
||||||
|
|
||||||
asked := make(chan struct{})
|
asked := make(chan struct{})
|
||||||
release := make(chan struct{})
|
release := make(chan struct{})
|
||||||
@@ -813,9 +810,9 @@ func TestRProxyStoppingCutsOffARequestAfterFiveSeconds(t *testing.T) {
|
|||||||
defer stop()
|
defer stop()
|
||||||
|
|
||||||
env := map[string]string{
|
env := map[string]string{
|
||||||
rproxyListenAddr: localhost + ":0",
|
rproxyListenAddr: localhost + ":0",
|
||||||
upstreamSetting: app.URL,
|
rproxyUpstreamURL: app.URL,
|
||||||
wafBackend: backend.URL,
|
wafBackend: backend.URL,
|
||||||
}
|
}
|
||||||
out := &output{}
|
out := &output{}
|
||||||
exited := make(chan int, 1)
|
exited := make(chan int, 1)
|
||||||
|
|||||||
Reference in new issue
Block a user