changeset 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 eee9056f483c
children 91a783779a32
files tests/test-jsapi-system.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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();
 }