aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/platform.c b/tests/platform.c
index 392c5c9d..85c7ba59 100644
--- a/tests/platform.c
+++ b/tests/platform.c
@@ -49,7 +49,7 @@ TestMain("Platform Operations", {
Convey("usleep works", {
nni_usleep(100000);
- So((getms() - now) > 100); // cannot be *shorter*!!
+ So((getms() - now) >= 100); // cannot be *shorter*!!
So((getms() - now) < 150); // crummy clock resolution?
})
Convey("times work", {
@@ -66,7 +66,7 @@ TestMain("Platform Operations", {
So(msend > now);
usdelta = (int)((usend - usnow) / 1000);
msdelta = (int)((msend - now));
- So(usdelta > 200);
+ So(usdelta >= 200);
So(usdelta < 220);
So(abs(msdelta - usdelta) < 20);
})