From 6a417484cd7327b0092df47457fa8cc7f548955c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 30 Nov 2024 20:55:07 -0500 Subject: tests: fix sign bug in comparing times --- src/testing/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testing') 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); -- cgit v1.2.3-70-g09d2