summaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-16 14:06:33 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-16 14:06:33 +0000
commitceb61a7028230e7d1faba3f01f1d9b0e1f9ab8e4 (patch)
tree09f5c7a16a59c1ffad083c6600d19f7ec1c86161 /src/transport/test_transport_api.c
parent961745754238752335b14293ef819d0b45ae8867 (diff)
transport-testing uses precomputed hostkeys to improve speed especially on slow systems
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r--src/transport/test_transport_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index 47686f8d9..a04017019 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -370,12 +370,10 @@ main (int argc, char *argv[])
int ret;
int nat_res;
- tth = GNUNET_TRANSPORT_TESTING_init ();
-
+ GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name);
GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source);
GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source,
&test_plugin);
- GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name);
GNUNET_log_setup (test_name,
#if VERBOSE
@@ -385,6 +383,8 @@ main (int argc, char *argv[])
#endif
NULL);
+ tth = GNUNET_TRANSPORT_TESTING_init ();
+
if ((strcmp (test_plugin, "tcp_nat") == 0) ||
(strcmp (test_plugin, "udp_nat") == 0))
{