You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.Fatalf("The semaphore was only supposed to allow %d goroutines to run simultaneously, but has allowed %d", permits, totalGoRoutinesExecutingSimultaneously)
t.Fatalf("The semaphore was only supposed to allow %d goroutines to run simultaneously, but has allowed %d", permits, totalGoRoutinesExecutingSimultaneously)
59
+
}
58
60
59
-
// Sleep for a random amount of time to represent this goroutine doing work
60
-
randomSleepTime:=rand.Intn(100)
61
-
time.Sleep(time.Duration(randomSleepTime) *time.Millisecond) //nolint:synctestcheck // TODO migrate to synctest
62
-
}
61
+
// Sleep for a random amount of time to represent this goroutine doing work.
62
+
// Under synctest the clock is fake, so this is deterministic and free.
0 commit comments