aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-30 20:55:07 -0500
committerGarrett D'Amore <garrett@damore.org>2024-11-30 20:55:07 -0500
commit6a417484cd7327b0092df47457fa8cc7f548955c (patch)
tree7df8bc240bdbc827e4bf521b08ef7c1d9441e390 /src/testing
parentf7333a108a2cfdb7225ed960e11d86147425e81a (diff)
downloadnng-6a417484cd7327b0092df47457fa8cc7f548955c.tar.gz
nng-6a417484cd7327b0092df47457fa8cc7f548955c.tar.bz2
nng-6a417484cd7327b0092df47457fa8cc7f548955c.zip
tests: fix sign bug in comparing times
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/util.c b/src/testing/util.c
index 81f11209..d569bf5f 100644
--- a/src/testing/util.c
+++ b/src/testing/util.c
@@ -562,7 +562,7 @@ nuts_tran_perf(const char *scheme)
NUTS_ASSERT(end >= now);
}
}
- NUTS_ASSERT(end - now >= 0);
+ NUTS_ASSERT(end >= now);
NUTS_ASSERT(end - now < 10000);
// remove the cost of timing
delta -= (end - now);