test: explicitly run the pprof tests for 1s instead of the 30s default (#6421)

This commit is contained in:
R.B. Boyer 2019-08-29 12:06:50 -05:00 committed by GitHub
parent 0f29543315
commit 4a2867a814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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