test: fix ntp_core unit test

This fixes commit b896bb5a78.
This commit is contained in:
Miroslav Lichvar 2017-08-09 10:41:03 +02:00
parent 4b511143b8
commit 3a1dbb1354

View 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);