mirror of https://github.com/status-im/consul.git
Update agent tests to wait a bit longer for the /v1/agent/self endpoint (#4937)
This commit is contained in:
parent
b153f9be39
commit
e30cc73b1d
|
@ -72,7 +72,8 @@ func TestHTTPAPI_MethodNotAllowed_OSS(t *testing.T) {
|
|||
testMethodNotAllowed := func(method string, path string, allowedMethods []string) {
|
||||
t.Run(method+" "+path, func(t *testing.T) {
|
||||
client := fastClient
|
||||
if path == "/v1/agent/leave" {
|
||||
switch path {
|
||||
case "/v1/agent/leave", "/v1/agent/self":
|
||||
// there are actual sleeps in this code that should take longer
|
||||
client = slowClient
|
||||
t.Logf("Using slow http client for leave tests")
|
||||
|
|
Loading…
Reference in New Issue