Small change to logger cleanup

yamux
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);
libp2p_logger_free();
return 1;
}

View File

@ -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;
}

View File

@ -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;
}