From: Miroslav Lichvar Date: Wed, 9 Aug 2017 08:41:03 +0000 (+0200) Subject: test: fix ntp_core unit test X-Git-Tag: 3.2-pre2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a1dbb1354157f013e91782eb474eecde1fc9328;p=thirdparty%2Fchrony.git test: fix ntp_core unit test This fixes commit b896bb5a783d3fc741b94bf65616b69097b5ecaf. --- 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);