From e30cc73b1d4e281a0123cb1d914101b1ce7aaf44 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Fri, 9 Nov 2018 10:35:47 -0600 Subject: [PATCH] Update agent tests to wait a bit longer for the /v1/agent/self endpoint (#4937) --- agent/http_oss_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/http_oss_test.go b/agent/http_oss_test.go index 04883d11f6..5c951b2f81 100644 --- a/agent/http_oss_test.go +++ b/agent/http_oss_test.go @@ -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")