test: fix server interleaved mode in ntp_core unit test
This commit is contained in:
parent
e2e07af8a4
commit
52ec694d2b
1 changed files with 5 additions and 0 deletions
|
@ -411,6 +411,7 @@ test_unit(void)
|
||||||
NCR_Initialise();
|
NCR_Initialise();
|
||||||
REF_Initialise();
|
REF_Initialise();
|
||||||
KEY_Initialise();
|
KEY_Initialise();
|
||||||
|
CLG_Initialise();
|
||||||
|
|
||||||
CNF_SetupAccessRestrictions();
|
CNF_SetupAccessRestrictions();
|
||||||
|
|
||||||
|
@ -422,6 +423,9 @@ test_unit(void)
|
||||||
source.params.version = random() % 4 + 1;
|
source.params.version = random() % 4 + 1;
|
||||||
|
|
||||||
UTI_ZeroTimespec(¤t_time);
|
UTI_ZeroTimespec(¤t_time);
|
||||||
|
#if HAVE_LONG_TIME_T
|
||||||
|
advance_time(NTP_ERA_SPLIT);
|
||||||
|
#endif
|
||||||
advance_time(TST_GetRandomDouble(1.0, 1e9));
|
advance_time(TST_GetRandomDouble(1.0, 1e9));
|
||||||
|
|
||||||
TST_GetRandomAddress(&remote_addr.ip_addr, IPADDR_UNSPEC, -1);
|
TST_GetRandomAddress(&remote_addr.ip_addr, IPADDR_UNSPEC, -1);
|
||||||
|
@ -595,6 +599,7 @@ test_unit(void)
|
||||||
TEST_CHECK(info.auth.mac.length == 72);
|
TEST_CHECK(info.auth.mac.length == 72);
|
||||||
TEST_CHECK(info.auth.mac.key_id == 300);
|
TEST_CHECK(info.auth.mac.key_id == 300);
|
||||||
|
|
||||||
|
CLG_Finalise();
|
||||||
KEY_Finalise();
|
KEY_Finalise();
|
||||||
REF_Finalise();
|
REF_Finalise();
|
||||||
NCR_Finalise();
|
NCR_Finalise();
|
||||||
|
|
Loading…
Reference in a new issue