From 4a2867a81431948c0cf73bfb161268f451b9122d Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Thu, 29 Aug 2019 12:06:50 -0500 Subject: [PATCH] test: explicitly run the pprof tests for 1s instead of the 30s default (#6421) --- agent/http_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/http_test.go b/agent/http_test.go index a58d0b1b6..c630f7bc2 100644 --- a/agent/http_test.go +++ b/agent/http_test.go @@ -748,7 +748,7 @@ func TestPProfHandlers_EnableDebug(t *testing.T) { defer a.Shutdown() resp := httptest.NewRecorder() - req, _ := http.NewRequest("GET", "/debug/pprof/profile", nil) + req, _ := http.NewRequest("GET", "/debug/pprof/profile?seconds=1", nil) a.srv.Handler.ServeHTTP(resp, req)