test: explicitly run the pprof tests for 1s instead of the 30s default (#6421)
This commit is contained in:
parent
0f29543315
commit
4a2867a814
|
@ -748,7 +748,7 @@ func TestPProfHandlers_EnableDebug(t *testing.T) {
|
||||||
defer a.Shutdown()
|
defer a.Shutdown()
|
||||||
|
|
||||||
resp := httptest.NewRecorder()
|
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)
|
a.srv.Handler.ServeHTTP(resp, req)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue