photoprism/internal/thumb/cache_test.go
Michael Mayer 010d243d14 Config: Change cache TTL default from 2630000 to 2592000 #3297
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 13:13:56 +01:00

16 lines
303 B
Go

package thumb
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestMaxAge_String(t *testing.T) {
t.Run("Hour", func(t *testing.T) {
assert.Equal(t, "3600", MaxAge(3600).String())
})
t.Run("Month", func(t *testing.T) {
assert.Equal(t, "2592000", MaxAge(2592000).String())
})
}