mirror of
https://github.com/coredns/coredns.git
synced 2026-02-17 12:43:09 -05:00
chore: bump minimum Go version to 1.25 (#7788)
This commit is contained in:
6
plugin/pkg/cache/shard_test.go
vendored
6
plugin/pkg/cache/shard_test.go
vendored
@@ -102,12 +102,10 @@ func TestShardEvictParallel(t *testing.T) {
|
||||
start := make(chan struct{})
|
||||
var wg sync.WaitGroup
|
||||
for range shardSize {
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
wg.Go(func() {
|
||||
<-start
|
||||
s.Evict()
|
||||
wg.Done()
|
||||
}()
|
||||
})
|
||||
}
|
||||
close(start) // start evicting in parallel
|
||||
wg.Wait()
|
||||
|
||||
Reference in New Issue
Block a user