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

pull/6428/head
R.B. Boyer 2019-08-29 12:06:50 -05:00 committed by GitHub
parent d979d8c239
commit 3be88df207
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)