From 948595fb3b380b89f245c66be8b69bf063955a26 Mon Sep 17 00:00:00 2001 From: cpq Date: Tue, 9 Aug 2022 12:45:10 +0100 Subject: [PATCH] Do not assert on SNTP and local clock diff, since local clock could be off --- test/unit_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit_test.c b/test/unit_test.c index 0d95c090..092d1a9d 100644 --- a/test/unit_test.c +++ b/test/unit_test.c @@ -299,7 +299,7 @@ static void sntp_cb(struct mg_connection *c, int ev, void *evd, void *fnd) { int64_t ms = (int64_t) tv.tv_sec * 1000 + tv.tv_usec / 1000; int64_t diff = ms > received ? ms - received : received - ms; MG_DEBUG(("diff: %lld", diff)); - ASSERT(diff < 100); + // ASSERT(diff < 100); #endif } else if (ev == MG_EV_OPEN) { c->is_hexdumping = 1;