]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: fix ntp_core unit test
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Aug 2017 08:41:03 +0000 (10:41 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Aug 2017 08:41:30 +0000 (10:41 +0200)
This fixes commit b896bb5a783d3fc741b94bf65616b69097b5ecaf.

test/unit/ntp_core.c

index a358c2a2d977edcfb33af09dcb3666f5ad05f45f..b227017d5036a1cc70454231d216bd11864ec61e 100644 (file)
@@ -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);