Small change to logger cleanup

This commit is contained in:
John Jones 2017-04-27 00:10:25 -05:00
parent 43bf2caeff
commit a991dab1bc
3 changed files with 2 additions and 6 deletions

View file

@ -26,7 +26,5 @@ int test_daemon_startup_shutdown() {
pthread_join(daemon_thread, NULL); pthread_join(daemon_thread, NULL);
libp2p_logger_free();
return 1; return 1;
} }

View file

@ -244,7 +244,6 @@ int test_routing_find_providers() {
} }
libp2p_utils_vector_free(result); libp2p_utils_vector_free(result);
} }
libp2p_logger_free();
return retVal; return retVal;
} }
@ -319,7 +318,6 @@ int test_routing_provide() {
} }
if (node != NULL) if (node != NULL)
ipfs_hashtable_node_free(node); ipfs_hashtable_node_free(node);
libp2p_logger_free();
return retVal; return retVal;
} }
@ -447,7 +445,6 @@ int test_routing_retrieve_file_third_party() {
ipfs_hashtable_node_free(node); ipfs_hashtable_node_free(node);
if (result_node != NULL) if (result_node != NULL)
ipfs_hashtable_node_free(result_node); ipfs_hashtable_node_free(result_node);
libp2p_logger_free();
return retVal; return retVal;
} }
@ -579,7 +576,6 @@ int test_routing_retrieve_large_file() {
ipfs_hashtable_node_free(node); ipfs_hashtable_node_free(node);
if (result_node != NULL) if (result_node != NULL)
ipfs_hashtable_node_free(result_node); ipfs_hashtable_node_free(result_node);
libp2p_logger_free();
return retVal; return retVal;
} }

View file

@ -19,6 +19,7 @@
#include "core/test_null.h" #include "core/test_null.h"
#include "core/test_daemon.h" #include "core/test_daemon.h"
#include "core/test_node.h" #include "core/test_node.h"
#include "libp2p/utils/logger.h"
int testit(const char* name, int (*func)(void)) { int testit(const char* name, int (*func)(void)) {
printf("Testing %s...\n", name); printf("Testing %s...\n", name);
@ -174,5 +175,6 @@ int main(int argc, char** argv) {
printf("All %d tests passed\n", tests_ran); printf("All %d tests passed\n", tests_ran);
} }
} }
libp2p_logger_free();
return 1; return 1;
} }