1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: make private_test.v more tolerant to small delays

This commit is contained in:
Delyan Angelov 2022-08-17 16:24:19 +03:00
parent e1ebd90190
commit 0e62344043

View File

@ -9,5 +9,6 @@ fn test_new_is_same_as_old_for_all_platforms() {
new_time := now()
diff := new_time.unix - old_time.unix
// could in very rare cases be that the second changed between calls
assert (diff >= 0 && diff <= 1) == true
dump(diff)
assert (diff >= 0 && diff <= 2) == true
}