From a991dab1bc1ea74315633a019462f6534af42bc8 Mon Sep 17 00:00:00 2001 From: John Jones Date: Thu, 27 Apr 2017 00:10:25 -0500 Subject: [PATCH] Small change to logger cleanup --- test/core/test_daemon.h | 2 -- test/routing/test_routing.h | 4 ---- test/testit.c | 2 ++ 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/core/test_daemon.h b/test/core/test_daemon.h index 91dc5df..4c1b52b 100644 --- a/test/core/test_daemon.h +++ b/test/core/test_daemon.h @@ -26,7 +26,5 @@ int test_daemon_startup_shutdown() { pthread_join(daemon_thread, NULL); - libp2p_logger_free(); - return 1; } diff --git a/test/routing/test_routing.h b/test/routing/test_routing.h index 23709a9..55d01d5 100644 --- a/test/routing/test_routing.h +++ b/test/routing/test_routing.h @@ -244,7 +244,6 @@ int test_routing_find_providers() { } libp2p_utils_vector_free(result); } - libp2p_logger_free(); return retVal; } @@ -319,7 +318,6 @@ int test_routing_provide() { } if (node != NULL) ipfs_hashtable_node_free(node); - libp2p_logger_free(); return retVal; } @@ -447,7 +445,6 @@ int test_routing_retrieve_file_third_party() { ipfs_hashtable_node_free(node); if (result_node != NULL) ipfs_hashtable_node_free(result_node); - libp2p_logger_free(); return retVal; } @@ -579,7 +576,6 @@ int test_routing_retrieve_large_file() { ipfs_hashtable_node_free(node); if (result_node != NULL) ipfs_hashtable_node_free(result_node); - libp2p_logger_free(); return retVal; } diff --git a/test/testit.c b/test/testit.c index 411f814..ebf29c2 100644 --- a/test/testit.c +++ b/test/testit.c @@ -19,6 +19,7 @@ #include "core/test_null.h" #include "core/test_daemon.h" #include "core/test_node.h" +#include "libp2p/utils/logger.h" int testit(const char* name, int (*func)(void)) { printf("Testing %s...\n", name); @@ -174,5 +175,6 @@ int main(int argc, char** argv) { printf("All %d tests passed\n", tests_ran); } } + libp2p_logger_free(); return 1; }