Skip to content

Commit a0ddde4

Browse files
committed
remove runtime.SetMutexProfileFraction usage in mutex test
1 parent 76453f5 commit a0ddde4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/sync/mutex_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ func HammerMutex(m *sync.Mutex, loops int, cdone chan bool) {
2222
}
2323

2424
func TestMutex(t *testing.T) {
25-
if n := runtime.SetMutexProfileFraction(1); n != 0 {
26-
t.Logf("got mutexrate %d expected 0", n)
27-
}
28-
defer runtime.SetMutexProfileFraction(0)
29-
3025
m := new(sync.Mutex)
3126

3227
m.Lock()

0 commit comments

Comments
 (0)