mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
tests: Add context cancelation (#15374)
A huge number of goroutines would build up from various monitors When creating test filesystems provide a context so they can shut down when no longer needed.
This commit is contained in:
@@ -130,7 +130,6 @@ func TestDynamicTimeoutConcurrent(t *testing.T) {
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
for i := 0; i < 100; i++ {
|
||||
timeout.LogFailure()
|
||||
for j := 0; j < 100; j++ {
|
||||
timeout.LogSuccess(time.Duration(float64(time.Second) * rng.Float64()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user