mirror of
https://github.com/status-im/nim-codex.git
synced 2025-01-09 18:36:29 +00:00
bd594c9aaf
* adding tracker for streamstore * adding tracker tests * Sets up tracker helper functions and closes streams in testnode.nim * Deploying checksuite for memory leak tracker checking. * Successfully deploys checksuite and asyncchecksuite. * Fix leak in testpor.nim * Fixes leaked storestream in testnetwork.nim * Fixes integration tests * Cleanup * cleanup comment by Mark --------- Co-authored-by: benbierens <thatbenbierens@gmail.com>
15 lines
279 B
Nim
15 lines
279 B
Nim
import std/times
|
|
import std/unittest
|
|
|
|
import codex/systemclock
|
|
import ./helpers
|
|
|
|
checksuite "SystemClock":
|
|
test "Should get now":
|
|
let clock = SystemClock.new()
|
|
|
|
let expectedNow = times.now().utc
|
|
let now = clock.now()
|
|
|
|
check now == expectedNow.toTime().toUnix()
|