diff options
Diffstat (limited to 'src/transport/test_transport_api_timeout.c')
-rw-r--r-- | src/transport/test_transport_api_timeout.c | 11 |
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[]) | |||
321 | int ret; | 321 | int ret; |
322 | int nat_res; | 322 | int nat_res; |
323 | 323 | ||
324 | tth = GNUNET_TRANSPORT_TESTING_init (); | ||
325 | |||
326 | GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source); | ||
327 | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source, | ||
328 | &test_plugin); | ||
329 | GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); | 324 | GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); |
330 | 325 | ||
331 | GNUNET_log_setup (test_name, | 326 | GNUNET_log_setup (test_name, |
@@ -336,6 +331,12 @@ main (int argc, char *argv[]) | |||
336 | #endif | 331 | #endif |
337 | NULL); | 332 | NULL); |
338 | 333 | ||
334 | GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source); | ||
335 | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source, | ||
336 | &test_plugin); | ||
337 | |||
338 | tth = GNUNET_TRANSPORT_TESTING_init (); | ||
339 | |||
339 | if ((strcmp (test_plugin, "tcp_nat") == 0) || | 340 | if ((strcmp (test_plugin, "tcp_nat") == 0) || |
340 | (strcmp (test_plugin, "udp_nat") == 0)) | 341 | (strcmp (test_plugin, "udp_nat") == 0)) |
341 | { | 342 | { |