Use sync/atomic package, now that we are at Go 1.19

This commit is contained in:
Deluan
2023-02-15 21:21:59 -05:00
parent 6dce4b2478
commit a134b1b608
3 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -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
}