mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-22 01:07:27 +02:00
Use sync/atomic package, now that we are at Go 1.19
This commit is contained in:
parent
6dce4b2478
commit
a134b1b608
3 changed files with 16 additions and 15 deletions
2
utils/cache/file_caches_test.go
vendored
2
utils/cache/file_caches_test.go
vendored
|
|
@ -17,7 +17,7 @@ import (
|
|||
// Call NewFileCache and wait for it to be ready
|
||||
func callNewFileCache(name, cacheSize, cacheFolder string, maxItems int, getReader ReadFunc) *fileCache {
|
||||
fc := NewFileCache(name, cacheSize, cacheFolder, maxItems, getReader).(*fileCache)
|
||||
Eventually(func() bool { return fc.ready.Get() }).Should(BeTrue())
|
||||
Eventually(func() bool { return fc.ready.Load() }).Should(BeTrue())
|
||||
return fc
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue