lib/ur: Fix panic getting goroutines for failures (ref #7785) (#7890)

This commit is contained in:
Simon Frei 2021-08-16 22:47:05 +02:00 committed by GitHub
parent a5bbb500e6
commit e1bf1e672e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ type FailureData struct {
func FailureDataWithGoroutines(description string) FailureData {
var buf *strings.Builder
pprof.NewProfile("goroutine").WriteTo(buf, 1)
pprof.Lookup("goroutine").WriteTo(buf, 1)
return FailureData{
Description: description,
Goroutines: buf.String(),