photoprism/internal/ttl/cache_test.go

17 lines
343 B
Go
Raw Normal View History

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)
})
}