Update agent tests to wait a bit longer for the /v1/agent/self endpoint (#4937)

This commit is contained in:
R.B. Boyer 2018-11-09 10:35:47 -06:00 committed by GitHub
parent 74520a6470
commit 003dacb340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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")