Skip to content

Commit

Permalink
Test unit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Oct 8, 2024
1 parent f488a28 commit 89316ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/ndpiReader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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");

Expand Down

0 comments on commit 89316ab

Please sign in to comment.