Skip to content

Commit

Permalink
remove runtime.SetMutexProfileFraction usage in mutex test
Browse files Browse the repository at this point in the history
  • Loading branch information
soypat committed Nov 11, 2023
1 parent 76453f5 commit a0ddde4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/sync/mutex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ func HammerMutex(m *sync.Mutex, loops int, cdone chan bool) {
}

func TestMutex(t *testing.T) {
if n := runtime.SetMutexProfileFraction(1); n != 0 {
t.Logf("got mutexrate %d expected 0", n)
}
defer runtime.SetMutexProfileFraction(0)

m := new(sync.Mutex)

m.Lock()
Expand Down

0 comments on commit a0ddde4

Please sign in to comment.