From 89316ab4c0df6222125da1f8fa95bf1ee3a0d974 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 8 Oct 2024 08:58:24 +0200 Subject: [PATCH] Test unit fix --- example/ndpiReader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/ndpiReader.c b/example/ndpiReader.c index b25a64e5ad8..6b32370c73a 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -6432,7 +6432,7 @@ void domainCacheTestUnit() { assert((ret = ndpi_address_cache_find(cache, ip, epoch_now)) != NULL); assert(strcmp(ret->hostname, "hello.local") == 0); sleep(1); - assert(ndpi_address_cache_find(cache, ip, 0 /* computed by the API */) == NULL); + assert(ndpi_address_cache_find(cache, ip, time(NULL)) == NULL); ndpi_term_address_cache(cache); } @@ -6449,7 +6449,7 @@ int main(int argc, char **argv) { #else int skip_unit_tests = 1; #endif - + #ifdef DEBUG_TRACE trace = fopen("/tmp/ndpiReader.log", "a");