logos-storage-nim/tests/storage/testsystemclock.nim
E M d62fbf5d52
WIP renaming
# Conflicts:
#	library/libstorage.nim

# Conflicts:
#	storage/rest/api.nim
#	storage/storage.nim
2026-02-19 15:08:16 +11:00

15 lines
281 B
Nim

import std/times
import pkg/unittest2
import pkg/storage/systemclock
import ./helpers
suite "SystemClock":
test "Should get now":
let clock = SystemClock.new()
let expectedNow = times.now().utc
let now = clock.now()
check now == expectedNow.toTime().toUnix()