Skip to content

Commit 8ddb8be

Browse files
committed
Fixed accessing the goroutine leak profile through Lookup when experiment is off.
1 parent 9f938be commit 8ddb8be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/pprof/pprof_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ func TestGoroutineLeakProfileConcurrency(t *testing.T) {
15841584
// Regular goroutine profile. Used to check that there is no interference between
15851585
// the two profile types.
15861586
goroutineProf := Lookup("goroutine")
1587-
goroutineLeakProf := Lookup("goroutineleak")
1587+
goroutineLeakProf := goroutineLeakProfile
15881588

15891589
// Check that a profile with debug information contains
15901590
includesLeak := func(t *testing.T, name, s string) {

0 commit comments

Comments
 (0)