mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-12 06:19:33 +00:00
Signed-off-by: Arnaud <arno.deville@gmail.com> Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
14 lines
264 B
Nim
14 lines
264 B
Nim
import std/times
|
|
|
|
import pkg/unittest2
|
|
import pkg/storage/systemclock
|
|
|
|
suite "SystemClock":
|
|
test "Should get now":
|
|
let clock = SystemClock.new()
|
|
|
|
let expectedNow = times.now().utc
|
|
let now = clock.now()
|
|
|
|
check now == expectedNow.toTime().toUnix()
|