Derive the proxy tests' short timeout setting from the timeout (closes #61)
check / check (push) Successful in 4m14s
check / check (push) Successful in 4m14s
shortTimeoutSetting is now shortTimeout.String(), so changing waitLimit changes both together. Model: opus-5-5
This commit was merged in pull request #62.
This commit is contained in:
@@ -26,8 +26,6 @@ const (
|
|||||||
// test process that wantTimedOut allows: a shorter one can run out
|
// test process that wantTimedOut allows: a shorter one can run out
|
||||||
// first on a busy host.
|
// first on a busy host.
|
||||||
shortTimeout = waitLimit / 2
|
shortTimeout = waitLimit / 2
|
||||||
// shortTimeoutSetting is shortTimeout as a setting's value.
|
|
||||||
shortTimeoutSetting = "5s"
|
|
||||||
// longTimeoutSetting is a timeout that does not run out in a test.
|
// longTimeoutSetting is a timeout that does not run out in a test.
|
||||||
longTimeoutSetting = "1m"
|
longTimeoutSetting = "1m"
|
||||||
// waitLimit bounds how long a test waits for what should happen.
|
// waitLimit bounds how long a test waits for what should happen.
|
||||||
@@ -39,6 +37,11 @@ const (
|
|||||||
localhost = "127.0.0.1"
|
localhost = "127.0.0.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// shortTimeoutSetting is shortTimeout as a setting's value.
|
||||||
|
//
|
||||||
|
//nolint:gochecknoglobals // a constant cannot call String
|
||||||
|
var shortTimeoutSetting = shortTimeout.String()
|
||||||
|
|
||||||
// The settings the tests set.
|
// The settings the tests set.
|
||||||
const (
|
const (
|
||||||
clientRequestTimeout = "SWWAF_CLIENT_REQUEST_TIMEOUT"
|
clientRequestTimeout = "SWWAF_CLIENT_REQUEST_TIMEOUT"
|
||||||
|
|||||||
Reference in New Issue
Block a user