mirror of https://github.com/hashicorp/consul
test: explicitly run the pprof tests for 1s instead of the 30s default (#6421)
parent
d979d8c239
commit
3be88df207
|
@ -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