Update agent tests to wait a bit longer for the /v1/agent/self endpoint (#4937)
This commit is contained in:
parent
74520a6470
commit
003dacb340
|
@ -72,7 +72,8 @@ func TestHTTPAPI_MethodNotAllowed_OSS(t *testing.T) {
|
||||||
testMethodNotAllowed := func(method string, path string, allowedMethods []string) {
|
testMethodNotAllowed := func(method string, path string, allowedMethods []string) {
|
||||||
t.Run(method+" "+path, func(t *testing.T) {
|
t.Run(method+" "+path, func(t *testing.T) {
|
||||||
client := fastClient
|
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
|
// there are actual sleeps in this code that should take longer
|
||||||
client = slowClient
|
client = slowClient
|
||||||
t.Logf("Using slow http client for leave tests")
|
t.Logf("Using slow http client for leave tests")
|
||||||
|
|
Loading…
Reference in New Issue