From cc007ad93bdb8ced023a4dc3a06e43666b59423a Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 27 Jul 2020 15:42:20 +0200 Subject: [PATCH] test: improve nts_ntp_client unit test --- test/unit/nts_ntp_client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/nts_ntp_client.c b/test/unit/nts_ntp_client.c index ccfba91..f5e7546 100644 --- a/test/unit/nts_ntp_client.c +++ b/test/unit/nts_ntp_client.c @@ -27,10 +27,11 @@ #include "ntp.h" #include "nts_ke_client.h" -#define NKC_CreateInstance(address, name) NULL -#define NKC_DestroyInstance(inst) +#define NKC_CreateInstance(address, name) Malloc(1) +#define NKC_DestroyInstance(inst) Free(inst) #define NKC_Start(inst) (random() % 2) #define NKC_IsActive(inst) (random() % 2) +#define NKC_GetRetryFactor(inst) (1) static int get_nts_data(NKC_Instance inst, NKE_Context *context, NKE_Cookie *cookies, int *num_cookies, int max_cookies,