aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-07 11:08:54 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-07 11:08:54 -0500
commitfce425e3ff0281de29f04ac46d8c395befee607d (patch)
tree784d9acd07ff1c24eaa958469b41e0c099c88f72 /src/test/test_util.c
parentd6ca36defa25e0d77718731924195cc244a18b11 (diff)
downloadtor-fce425e3ff0281de29f04ac46d8c395befee607d.tar.gz
tor-fce425e3ff0281de29f04ac46d8c395befee607d.zip
Increase tolerances in util/monotonic_time tests
This is an attempt to fix #19974.
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r--src/test/test_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 7276c0cbfc..fcda564569 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -5531,9 +5531,9 @@ test_util_monotonic_time(void *arg)
tt_u64_op(msecc1, OP_GE, nsecc1 / 1000000);
tt_u64_op(usecc1, OP_GE, nsecc1 / 1000);
tt_u64_op(msec1, OP_LE, nsec1 / 1000000 + 1);
- tt_u64_op(usec1, OP_LE, nsec1 / 1000 +10);
+ tt_u64_op(usec1, OP_LE, nsec1 / 1000 + 1000);
tt_u64_op(msecc1, OP_LE, nsecc1 / 1000000 + 1);
- tt_u64_op(usecc1, OP_LE, nsecc1 / 1000 + 10);
+ tt_u64_op(usecc1, OP_LE, nsecc1 / 1000 + 1000);
done:
;