mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
17 lines
298 B
Go
17 lines
298 B
Go
package unix
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTime(t *testing.T) {
|
|
result := Time()
|
|
|
|
assert.Greater(t, result, int64(1706521797))
|
|
assert.GreaterOrEqual(t, result, time.Now().UTC().Unix())
|
|
assert.LessOrEqual(t, result, time.Now().UTC().Unix()+2)
|
|
}
|