Skip to content

Commit bb32ddc

Browse files
committed
Test unix_now()
1 parent 966962c commit bb32ddc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/runtests.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,12 @@ end
6262
@test UnixTime(2020, 1, 1, 10) - UnixTime(2020, 1, 1, 9) == Nanosecond(60 * 60 * 1_000_000_000)
6363
end
6464

65+
@testset "now" begin
66+
@test unix_now() isa UnixTime
67+
t1 = unix_now()
68+
sleep(Millisecond(100))
69+
t2 = unix_now()
70+
@test t2 > t1
71+
end
72+
6573
end

0 commit comments

Comments
 (0)