From 3a1dbb1354157f013e91782eb474eecde1fc9328 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 9 Aug 2017 10:41:03 +0200 Subject: [PATCH] test: fix ntp_core unit test This fixes commit b896bb5a783d3fc741b94bf65616b69097b5ecaf. --- test/unit/ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/ntp_core.c b/test/unit/ntp_core.c index a358c2a2..b227017d 100644 --- a/test/unit/ntp_core.c +++ b/test/unit/ntp_core.c @@ -252,7 +252,7 @@ test_unit(void) DEBUG_LOG("iteration %d, %d", i, j); interleaved = random() % 2 && (inst->mode != MODE_CLIENT || - inst->tx_count <= MAX_CLIENT_INTERLEAVED_TX); + inst->tx_count < MAX_CLIENT_INTERLEAVED_TX); authenticated = random() % 2; valid = (!interleaved || (source.params.interleaved && has_updated)) && (!source.params.authkey || authenticated); -- 2.47.3