From a0ddde4c656aa82164f497745006094149a4879a Mon Sep 17 00:00:00 2001 From: soypat Date: Fri, 10 Nov 2023 23:52:35 -0300 Subject: [PATCH] remove runtime.SetMutexProfileFraction usage in mutex test --- src/sync/mutex_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sync/mutex_test.go b/src/sync/mutex_test.go index df738f8157..accb01c975 100644 --- a/src/sync/mutex_test.go +++ b/src/sync/mutex_test.go @@ -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()