Merge branch 'upstream-mirror' into sync-updates

# Conflicts:
#	layeredcache_test.go
This commit is contained in:
Eli Bishop
2021-03-18 20:27:43 -07:00
8 changed files with 31 additions and 4 deletions

View File

@@ -235,6 +235,8 @@ func (_ LayeredCacheTests) ResizeOnTheFly() {
for i := 0; i < 5; i++ {
cache.Set(strconv.Itoa(i), "a", i, time.Minute)
}
cache.SyncUpdates()
cache.SetMaxSize(3)
cache.SyncUpdates()
Expect(cache.GetDropped()).To.Equal(2)