diff tests/test-jsapi-system.c @ 1189:b98294e7cadc release-4.0

tests: improve on slow machines
author David Demelier <markand@malikania.fr>
date Thu, 09 Mar 2023 12:40:47 +0100
parents f06e9761cc90
children c6b5bf592252
line wrap: on
line diff
--- a/tests/test-jsapi-system.c	Wed Feb 08 10:09:44 2023 +0100
+++ b/tests/test-jsapi-system.c	Thu Mar 09 12:40:47 2023 +0100
@@ -75,7 +75,7 @@
 
 	now = time(NULL);
 
-	GREATEST_ASSERT_IN_RANGE(2000LL, difftime(now, start) * 1000LL, 100LL);
+	GREATEST_ASSERT(difftime(now, start) >= 2);
 
 	GREATEST_PASS();
 }
@@ -92,7 +92,7 @@
 
 	now = time(NULL);
 
-	GREATEST_ASSERT_IN_RANGE(2000LL, difftime(now, start) * 1000LL, 100LL);
+	GREATEST_ASSERT(difftime(now, start) >= 2);
 
 	GREATEST_PASS();
 }