summaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_timeout.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_timeout.c
parent961745754238752335b14293ef819d0b45ae8867 (diff)
transport-testing uses precomputed hostkeys to improve speed especially on slow systems
Diffstat (limited to 'src/transport/test_transport_api_timeout.c')
-rw-r--r--src/transport/test_transport_api_timeout.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/transport/test_transport_api_timeout.c b/src/transport/test_transport_api_timeout.c
index 79a90ba0e..9a16447f3 100644
--- a/src/transport/test_transport_api_timeout.c
+++ b/src/transport/test_transport_api_timeout.c
@@ -321,11 +321,6 @@ main (int argc, char *argv[])
int ret;
int nat_res;
- tth = GNUNET_TRANSPORT_TESTING_init ();
-
- 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,
@@ -336,6 +331,12 @@ main (int argc, char *argv[])
#endif
NULL);
+ GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source);
+ GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source,
+ &test_plugin);
+
+ tth = GNUNET_TRANSPORT_TESTING_init ();
+
if ((strcmp (test_plugin, "tcp_nat") == 0) ||
(strcmp (test_plugin, "udp_nat") == 0))
{