photoprism/internal/ttl/cache_test.go
Michael Mayer 481c207897 Cache: Refactor internal/ttl package
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-10 10:26:38 +01:00

16 lines
343 B
Go

package ttl
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCache(t *testing.T) {
t.Run("Defaults", func(t *testing.T) {
assert.Equal(t, Duration(365*24*3600), CacheMaxAge)
assert.Greater(t, CacheMaxAge, CacheDefault)
assert.Greater(t, CacheDefault, CacheVideo)
assert.Greater(t, CacheVideo, CacheCover)
})
}